|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.SingleNodeExpression
net.sf.saxon.expr.ParentNodeExpression
public class ParentNodeExpression
Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"
| Field Summary |
|---|
| Fields inherited from class net.sf.saxon.expr.Expression |
|---|
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD |
| Constructor Summary | |
|---|---|
ParentNodeExpression()
|
|
| Method Summary | |
|---|---|
PathMap.PathMapNodeSet |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of this expression to a PathMap. |
Expression |
copy()
Copy an expression. |
boolean |
equals(Object other)
Is this expression the same as another expression? |
void |
explain(ExpressionPresenter destination)
Diagnostic print of expression structure. |
String |
getExpressionName()
Get a name identifying the kind of expression, in terms meaningful to a user. |
NodeInfo |
getNode(XPathContext context)
Return the node selected by this SingleNodeExpression |
int |
hashCode()
get HashCode for comparing two expressions |
protected String |
noContextMessage()
Customize the error message on type checking |
String |
toString()
The toString() method for an expression attempts to give a representation of the expression in an XPath-like form, but there is no guarantee that the syntax will actually be true XPath. |
| Methods inherited from class net.sf.saxon.expr.SingleNodeExpression |
|---|
computeCardinality, computeSpecialProperties, effectiveBooleanValue, evaluateItem, getIntrinsicDependencies, getItemType, isContextPossiblyUndefined, iterate, optimize, typeCheck |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParentNodeExpression()
| Method Detail |
|---|
public String getExpressionName()
getExpressionName in class Expressionprotected String noContextMessage()
noContextMessage in class SingleNodeExpression
public NodeInfo getNode(XPathContext context)
throws XPathException
getNode in class SingleNodeExpressioncontext - The context for the evaluation
XPathExceptionpublic Expression copy()
copy in class Expression
public PathMap.PathMapNodeSet addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap in class ExpressionpathMap - the PathMap to which the expression should be addedpathMapNodeSet -
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Expressionpublic void explain(ExpressionPresenter destination)
explain in class Expressiondestination - the expression presenter used to display the structure
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||