Package com.github.mustachejava.reflect
Class ReflectionWrapper
java.lang.Object
com.github.mustachejava.reflect.GuardedWrapper
com.github.mustachejava.reflect.ReflectionWrapper
- All Implemented Interfaces:
Wrapper
Used for evaluating values at a callsite
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Object[]protected final Fieldprotected final Methodprotected final ObjectHandlerprotected final intprotected final Wrapper[]Fields inherited from class com.github.mustachejava.reflect.GuardedWrapper
guardException, guards -
Constructor Summary
ConstructorsConstructorDescriptionReflectionWrapper(int scopeIndex, Wrapper[] wrappers, Guard[] guard, AccessibleObject method, Object[] arguments, ObjectHandler oh) -
Method Summary
Methods inherited from class com.github.mustachejava.reflect.GuardedWrapper
equals, getGuards, guardCall, hashCode
-
Field Details
-
scopeIndex
protected final int scopeIndex -
wrappers
-
oh
-
method
-
field
-
arguments
-
-
Constructor Details
-
ReflectionWrapper
public ReflectionWrapper(int scopeIndex, Wrapper[] wrappers, Guard[] guard, AccessibleObject method, Object[] arguments, ObjectHandler oh)
-
-
Method Details
-
unwrap
-
call
- Specified by:
callin interfaceWrapper- Overrides:
callin classGuardedWrapper- Throws:
GuardException
-
getMethod
-
getField
-
getArguments
-
toString
- Overrides:
toStringin classGuardedWrapper
-
getWrappers
-
getTargetDescription
-
elementsToString
-
elementToString
-