Package com.github.jknack.handlebars
Interface PathExpression
public interface PathExpression
Compiled version of path expression, like:
this, foo,
foo.bar.- Since:
- 4.0.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCall the next expression in the chain and/or finalize the process if this was the tail. -
Method Summary
Modifier and TypeMethodDescriptioneval(ValueResolver resolver, Context context, Object data, PathExpression.Chain chain) Eval the expression and resolve it to a value.booleanlocal()
-
Method Details
-
eval
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...
-