net.sf.saxon.expr
Class ParentNodeExpression
java.lang.Object
net.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.SingleNodeExpression
net.sf.saxon.expr.ParentNodeExpression
- All Implemented Interfaces:
- Container, Expression, InstructionInfoProvider, java.io.Serializable, javax.xml.transform.SourceLocator
- public class ParentNodeExpression
- extends SingleNodeExpression
Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"
- See Also:
- Serialized Form
Method Summary |
void |
display(int level,
NamePool pool,
java.io.PrintStream out)
Diagnostic print of expression structure |
boolean |
equals(java.lang.Object other)
Is this expression the same as another expression? |
NodeInfo |
getNode(XPathContext context)
Return the node selected by this SingleNodeExpression |
int |
hashCode()
get HashCode for comparing two expressions |
Methods inherited from class net.sf.saxon.expr.ComputedExpression |
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterateSubExpressions, markTailFunctionCalls, process, promote, resetStaticProperties, setLocationId, setParentExpression, simplify, suppressValidation, typeError, typeError |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ParentNodeExpression
public ParentNodeExpression()
getNode
public NodeInfo getNode(XPathContext context)
throws XPathException
- Return the node selected by this SingleNodeExpression
- Specified by:
getNode
in class SingleNodeExpression
- Parameters:
context
- The context for the evaluation
- Returns:
- the parent of the current node defined by the context
- Throws:
XPathException
equals
public boolean equals(java.lang.Object other)
- Is this expression the same as another expression?
hashCode
public int hashCode()
- get HashCode for comparing two expressions
display
public void display(int level,
NamePool pool,
java.io.PrintStream out)
- Diagnostic print of expression structure
- Parameters:
level
- indentation level for this expressionpool
- NamePool used to expand any names appearing in the expressionout
- Output destination