public class InvokeDynamicMethodAccess<C> extends Object implements MethodAccess<C>
Modifier and Type | Method and Description |
---|---|
Class<C> |
declaringClass()
Get the Class containing the field being accessed
|
static <C> InvokeDynamicMethodAccess<C> |
get(Method m) |
Object |
invoke(Object target,
Object... args)
Invokes the method
|
Method |
method()
Get the Method being accessed
|
Class<?> |
returnClass()
The Class giving the type of the method result or null
|
public static <C> InvokeDynamicMethodAccess<C> get(Method m)
public Class<C> declaringClass()
MethodAccess
declaringClass
in interface MethodAccess<C>
public Class<?> returnClass()
MethodAccess
returnClass
in interface MethodAccess<C>
public Method method()
MethodAccess
method
in interface MethodAccess<C>
public Object invoke(Object target, Object... args) throws IllegalArgumentException
MethodAccess
invoke
in interface MethodAccess<C>
target
- The instance to access the method forargs
- The arguments to supply when invoking the methodIllegalArgumentException
Copyright © 2010–2018 Jadira Systems. All rights reserved.