net.sf.saxon.expr
Class ParentNodeExpression
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.SingleNodeExpression
net.sf.saxon.expr.ParentNodeExpression
- All Implemented Interfaces:
- Serializable, SourceLocator, Container, EvaluableItem, SequenceIterable, InstructionInfoProvider
public class ParentNodeExpression
- extends SingleNodeExpression
Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"
- See Also:
- Serialized Form
Methods inherited from class net.sf.saxon.expr.Expression |
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, evaluateAsString, getCardinality, getColumnNumber, getContainingProcedure, 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 |
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(Object other)
- Is this expression the same as another expression?
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- get HashCode for comparing two expressions
- Overrides:
hashCode
in class Object
display
public void display(int level,
PrintStream out,
Configuration config)
- Diagnostic print of expression structure
- Specified by:
display
in class Expression
- Parameters:
level
- indentation level for this expressionout
- Output destination
Copyright (C) Michael H. Kay. All rights reserved.