Package com.github.mustachejava.reflect
Class GuardedWrapper
- java.lang.Object
-
- com.github.mustachejava.reflect.GuardedWrapper
-
- All Implemented Interfaces:
Wrapper
- Direct Known Subclasses:
MissingWrapper,ReflectionWrapper
public class GuardedWrapper extends java.lang.Object implements Wrapper
Wrapper that guards.
-
-
Field Summary
Fields Modifier and Type Field Description protected static GuardExceptionguardExceptionprotected Guard[]guardsprivate inthashCode
-
Constructor Summary
Constructors Constructor Description GuardedWrapper(Guard[] guards)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectcall(java.util.List<java.lang.Object> scopes)booleanequals(java.lang.Object o)Guard[]getGuards()protected voidguardCall(java.util.List<java.lang.Object> scopes)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
guardException
protected static final GuardException guardException
-
guards
protected final Guard[] guards
-
hashCode
private int hashCode
-
-
Constructor Detail
-
GuardedWrapper
public GuardedWrapper(Guard[] guards)
-
-
Method Detail
-
call
public java.lang.Object call(java.util.List<java.lang.Object> scopes) throws GuardException- Specified by:
callin interfaceWrapper- Throws:
GuardException
-
guardCall
protected void guardCall(java.util.List<java.lang.Object> scopes) throws GuardException- Throws:
GuardException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
getGuards
public Guard[] getGuards()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-