public class ReflectionWrapper extends GuardedWrapper
Modifier and Type | Field and Description |
---|---|
protected Object[] |
arguments |
protected Field |
field |
protected Method |
method |
protected ObjectHandler |
oh |
protected int |
scopeIndex |
protected Wrapper[] |
wrappers |
guardException, guards
Constructor and Description |
---|
ReflectionWrapper(int scopeIndex,
Wrapper[] wrappers,
Guard[] guard,
AccessibleObject method,
Object[] arguments,
ObjectHandler oh) |
Modifier and Type | Method and Description |
---|---|
Object |
call(List<Object> scopes) |
Object[] |
getArguments() |
Field |
getField() |
Method |
getMethod() |
Wrapper[] |
getWrappers() |
String |
toString() |
protected Object |
unwrap(List<Object> scopes) |
equals, getGuards, guardCall, hashCode
protected final int scopeIndex
protected final Wrapper[] wrappers
protected final ObjectHandler oh
protected final Method method
protected final Field field
protected final Object[] arguments
public ReflectionWrapper(int scopeIndex, Wrapper[] wrappers, Guard[] guard, AccessibleObject method, Object[] arguments, ObjectHandler oh)
public Object call(List<Object> scopes) throws GuardException
call
in interface Wrapper
call
in class GuardedWrapper
GuardException
public Method getMethod()
public Field getField()
public Object[] getArguments()
public String toString()
toString
in class GuardedWrapper
public Wrapper[] getWrappers()
Copyright © 2018. All rights reserved.