public class IndexedPath extends Object implements PathExpression
PathExpression.Chain
Constructor and Description |
---|
IndexedPath(int idx,
String name,
boolean local)
A new
IndexedPath . |
Modifier and Type | Method and Description |
---|---|
Object |
eval(ValueResolver resolver,
Context context,
Object data,
PathExpression.Chain chain)
Eval the expression and resolve it to a value.
|
boolean |
local() |
String |
toString() |
public IndexedPath(int idx, String name, boolean local)
IndexedPath
.idx
- Index.name
- Path.local
- True, if we want to restrict lookup to current scope.public Object eval(ValueResolver resolver, Context context, Object data, PathExpression.Chain chain)
PathExpression
eval
in interface PathExpression
resolver
- Value resolvercontext
- Context object.data
- Data object.chain
- Expression chain.null
.public boolean local()
local
in interface PathExpression
this.name
this
,
etc...Copyright © 2022. All rights reserved.