Package com.github.jknack.handlebars
Interface PathExpression
-
public interface PathExpressionCompiled version of path expression, like:this,foo,foo.bar.- Since:
- 4.0.1
- See Also:
PathCompiler.compile(String)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePathExpression.ChainCall the next expression in the chain and/or finalize the process if this was the tail.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objecteval(ValueResolver resolver, Context context, java.lang.Object data, PathExpression.Chain chain)Eval the expression and resolve it to a value.booleanlocal()
-
-
-
Method Detail
-
eval
java.lang.Object eval(ValueResolver resolver, Context context, java.lang.Object data, PathExpression.Chain chain)
Eval the expression and resolve it to a value.- Parameters:
resolver- Value resolvercontext- Context object.data- Data object.chain- Expression chain.- Returns:
- A resolved value or
null.
-
local
boolean local()
- Returns:
- True if this expression is local. That's lookup won't be propagate to parent (or any
other). Example of these expressions are:
this.namethis, etc...
-
-