net.sf.saxon.expr

Class ParentNodeExpression

public class ParentNodeExpression extends SingleNodeExpression

Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"
Method Summary
voiddisplay(int level, NamePool pool, PrintStream out)
Diagnostic print of expression structure
booleanequals(Object other)
Is this expression the same as another expression?
NodeInfogetNode(XPathContext context)
Return the node selected by this SingleNodeExpression
inthashCode()
get HashCode for comparing two expressions

Method Detail

display

public void display(int level, NamePool pool, PrintStream out)
Diagnostic print of expression structure

equals

public boolean equals(Object other)
Is this expression the same as another expression?

getNode

public NodeInfo getNode(XPathContext context)
Return the node selected by this SingleNodeExpression

Parameters: context The context for the evaluation

Returns: the parent of the current node defined by the context

hashCode

public int hashCode()
get HashCode for comparing two expressions