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 |
protected com.google.common.base.Predicate[] |
guard
|
Constructor Summary |
GuardedWrapper(com.google.common.base.Predicate[] guard)
|
Method Summary |
java.lang.Object |
call(java.lang.Object[] scopes)
|
boolean |
equals(java.lang.Object o)
|
protected void |
guardCall(java.lang.Object[] scopes)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
guard
protected final com.google.common.base.Predicate[] guard
GuardedWrapper
public GuardedWrapper(com.google.common.base.Predicate[] guard)
call
public java.lang.Object call(java.lang.Object[] scopes)
throws GuardException
- Specified by:
call
in interface Wrapper
- Throws:
GuardException
guardCall
protected void guardCall(java.lang.Object[] scopes)
throws GuardException
- Throws:
GuardException
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
Copyright © 2012. All Rights Reserved.