net.vidageek.mirror.invoke
Class MethodHandlerByName
java.lang.Object
net.vidageek.mirror.invoke.MethodHandlerByName
- All Implemented Interfaces:
- MethodHandler
public final class MethodHandlerByName
- extends Object
- implements MethodHandler
Class responsible for invoking methods using is name and arguments.
- Author:
- jonasabreu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodHandlerByName
public MethodHandlerByName(ReflectionProvider provider,
Object target,
Class<?> clazz,
String methodName)
withoutArgs
public Object withoutArgs()
- Description copied from interface:
MethodHandler
- Invoke a method without arguments.
- Specified by:
withoutArgs in interface MethodHandler
- Returns:
- The value returned by the method or null if the method was void.
withArgs
public Object withArgs(Object... args)
- Description copied from interface:
MethodHandler
- Invoke a method using arguments args.
- Specified by:
withArgs in interface MethodHandler
- Parameters:
args - arguments to be used to invoke method.
- Returns:
- The value returned by the method or null if the method was void.
Copyright © 2011 VidaGeek.net. All Rights Reserved.