com.github.mustachejava.reflect
Class ReflectionWrapper
java.lang.Object
com.github.mustachejava.reflect.GuardedWrapper
com.github.mustachejava.reflect.ReflectionWrapper
- All Implemented Interfaces:
- Wrapper
public class ReflectionWrapper
- extends GuardedWrapper
Used for evaluating values at a callsite
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
scopeIndex
protected int scopeIndex
wrappers
protected Wrapper[] wrappers
method
protected final java.lang.reflect.Method method
field
protected final java.lang.reflect.Field field
arguments
protected final java.lang.Object[] arguments
ReflectionWrapper
public ReflectionWrapper(int scopeIndex,
Wrapper[] wrappers,
com.google.common.base.Predicate<java.lang.Object[]>[] guard,
java.lang.reflect.AccessibleObject method,
java.lang.Object[] arguments,
ObjectHandler oh)
ReflectionWrapper
public ReflectionWrapper(ReflectionWrapper rw)
call
public java.lang.Object call(java.lang.Object[] scopes)
throws GuardException
- Specified by:
call
in interface Wrapper
- Overrides:
call
in class GuardedWrapper
- Throws:
GuardException
getMethod
public java.lang.reflect.Method getMethod()
getField
public java.lang.reflect.Field getField()
getArguments
public java.lang.Object[] getArguments()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012. All Rights Reserved.