com.github.mustachejava.reflect.GuardedWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
Implementation of mustache.js for Java
package com.github.mustachejava.reflect;
import com.github.mustachejava.util.GuardException;
import com.github.mustachejava.util.Wrapper;
import com.google.common.base.Predicate;
import java.util.Arrays;
/**
* Wrapper that guards.
*/
public class GuardedWrapper implements Wrapper {
// We only need a single guard exception -- don't fill stack trace
// and don't reallocate it.
private static final GuardException guardException = new GuardException();
static {
guardException.setStackTrace(new StackTraceElement[0]);
}
// Array of guards that must be satisfied
protected final Predicate
© 2015 - 2025 Weber Informatics LLC | Privacy Policy