Class ParentNodeExpression
java.lang.Object
net.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.SingleNodeExpression
net.sf.saxon.expr.ParentNodeExpression
- All Implemented Interfaces:
Serializable, SourceLocator, Container, Expression, InstructionInfoProvider
Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"
- See Also:
-
Field Summary
Fields inherited from class ComputedExpression
locationId, staticPropertiesFields inherited from interface Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplay(int level, PrintStream out, Configuration config) Diagnostic print of expression structurebooleanIs this expression the same as another expression?getNode(XPathContext context) Return the node selected by this SingleNodeExpressioninthashCode()get HashCode for comparing two expressionsMethods inherited from class SingleNodeExpression
computeCardinality, computeSpecialProperties, effectiveBooleanValue, evaluateItem, getIntrinsicDependencies, getItemType, iterate, optimize, typeCheckMethods inherited from class ComputedExpression
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterateSubExpressions, markTailFunctionCalls, process, promote, replaceSubExpression, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, simplify, suppressValidation, typeError
-
Constructor Details
-
ParentNodeExpression
public ParentNodeExpression()
-
-
Method Details
-
getNode
Return the node selected by this SingleNodeExpression- Specified by:
getNodein classSingleNodeExpression- Parameters:
context- The context for the evaluation- Returns:
- the parent of the current node defined by the context
- Throws:
XPathException
-
equals
-
hashCode
-
display
Diagnostic print of expression structure- Parameters:
level- indentation level for this expressionout- Output destinationconfig-
-