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:
java.io.Serializable
,javax.xml.transform.SourceLocator
,Container
,Expression
,InstructionInfoProvider
public class ParentNodeExpression extends SingleNodeExpression
Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"- See Also:
- Serialized Form
-
-
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 Constructor Description ParentNodeExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
display(int level, java.io.PrintStream out, Configuration config)
Diagnostic print of expression structureboolean
equals(java.lang.Object other)
Is this expression the same as another expression?NodeInfo
getNode(XPathContext context)
Return the node selected by this SingleNodeExpressionint
hashCode()
get HashCode for comparing two expressions-
Methods 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
-
-
-
-
Method Detail
-
getNode
public NodeInfo getNode(XPathContext context) throws XPathException
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
public boolean equals(java.lang.Object other)
Is this expression the same as another expression?- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
get HashCode for comparing two expressions- Overrides:
hashCode
in classjava.lang.Object
-
display
public void display(int level, java.io.PrintStream out, Configuration config)
Diagnostic print of expression structure- Parameters:
level
- indentation level for this expressionout
- Output destination
-
-