Package 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:
Serializable
,SourceLocator
,Container
,Expression
,InstructionInfoProvider
Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"
- See Also:
-
Field Summary
Fields inherited from class net.sf.saxon.expr.ComputedExpression
locationId, staticProperties
Fields inherited from interface net.sf.saxon.expr.Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(int level, PrintStream out, Configuration config) Diagnostic print of expression structureboolean
Is this expression the same as another expression?getNode
(XPathContext context) Return the node selected by this SingleNodeExpressionint
hashCode()
get HashCode for comparing two expressionsMethods inherited from class net.sf.saxon.expr.SingleNodeExpression
computeCardinality, computeSpecialProperties, effectiveBooleanValue, evaluateItem, getIntrinsicDependencies, getItemType, iterate, optimize, typeCheck
Methods inherited from class net.sf.saxon.expr.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:
getNode
in classSingleNodeExpression
- Parameters:
context
- The context for the evaluation- Returns:
- the parent of the current node defined by the context
- Throws:
XPathException
-
equals
Is this expression the same as another expression? -
hashCode
public int hashCode()get HashCode for comparing two expressions -
display
Diagnostic print of expression structure- Parameters:
level
- indentation level for this expressionout
- Output destinationconfig
-
-