Class ParentNodeExpression

All Implemented Interfaces:
Serializable, SourceLocator, Container, Expression, InstructionInfoProvider

public class ParentNodeExpression extends SingleNodeExpression
Class ParentNodeExpression represents the XPath expression ".." or "parent::node()"
See Also:
  • Constructor Details

    • ParentNodeExpression

      public ParentNodeExpression()
  • Method Details

    • 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
      Parameters:
      level - indentation level for this expression
      out - Output destination
      config -