Abstraction around reflection to allow complete functionality of reflected classes
###Example
//Say you want to use a Geofencing event, without importing it
//create the reflektor object using the fromIntent method instead of a normal constructor
final Reflektor geofencingEvent = new Reflektor("com.google.android.gms.location.GeofencingEvent", "fromIntent",new Class[]{Intent.class}, new Object[]{intent});
//now you have the object call whatever method you want on it.
//say I want to see if it has an error code
boolean hasError = (boolean) geofencingEvent.invoke("hasError");
//if it does have an error I want to see what the error code is
if (hasError) {
int errorCode = (int) geofencingEvent.invoke("getErrorCode");
}
//Using googleAPIClient.Builder
//create an instance using a constructor which takes in context
Reflektor apiClientBuilder = new Reflektor("com.google.android.gms.common.api.GoogleApiClient.Builder", new Class[]{Context.class}, new Object[]{context});
//add an API using the addApi method which has a parameter of the API
apiClientBuilder.invoke("addApi",new Class[]{api.getClass()}, new Object[]{api});
//add a listener
apiClientBuilder.invoke("addConnectionFailedListener",new Class[]{listener.getClass()}, new Object[]{listener});
//build the client (will return that actual GoogleApiClient)
Object apiClient = apiClientBuilder.invoke("build");
//if you ever want to get the builder class
Class builderClass = apiClientBuilder.getTargetClass();
//if you want to get the actual builder itself
Object builder = apiClientBuilder.getTarget();
###Importing Copy the class into your package (there is only one class, no dependencies)
###Usage The java docs on each method should explain how to use each method/constructor fairly well
##License
Copyright (c) 2016 Colin Cooke
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.