|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A functional operator that can be applied to a Path to obtain a new Path.
Method Summary | |
Path |
applyTo(Path p)
Create a new Path by applying this operator. |
java.lang.Object |
arg(int i)
Get the i-th argument for the function represented by this PathOperator. |
java.lang.String[] |
args()
Each PathOperator can be described by an operator name and a set of arguments. |
Getter |
bindFrom(Path parent)
Extract the appropriate Getter by applying this operator. |
java.lang.String |
encoded()
The encoded string representing this PathOperator |
java.lang.String |
functionName()
Each PathOperator can be described by an operator name and a set of arguments. |
boolean |
isAbsolute()
Whether or not this PathOperator represents a direct reference to a Node. |
boolean |
isDocumentOp()
Is this PathOperator a document-level operator? |
boolean |
isFragmentOp()
Is this PathOperator a fragment-level operator? |
Method Detail |
public boolean isDocumentOp()
All Path operators either select a Document or a location within a Document. Those that select Documents are referred to as "document" operators.
PathOperators may work on both levels (e.g. DerefOp)
public boolean isFragmentOp()
All Path operators either select a Document or a location within a Document. Those that operate inside Documents are referred to as "fragment" operators.
PathOperators may work on both levels (e.g. DerefOp)
public boolean isAbsolute()
public java.lang.String encoded()
public Path applyTo(Path p) throws Path.Failure
Path.Failure
public Getter bindFrom(Path parent) throws Path.Failure
Path.Failure
- if there is a type mismatch when accessing the
Getterpublic java.lang.String functionName()
public java.lang.String[] args()
public java.lang.Object arg(int i)
i
- the index of the argument requested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |