Class RootExpression

  • All Implemented Interfaces:
    java.io.Serializable, javax.xml.transform.SourceLocator, Container, Expression, InstructionInfoProvider

    public class RootExpression
    extends SingleNodeExpression
    An expression whose value is always a set of nodes containing a single node, the document root. This corresponds to the XPath Expression "/", including the implicit "/" at the start of a path expression with a leading "/".
    See Also:
    Serialized Form
    • Constructor Detail

      • RootExpression

        public RootExpression()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Is this expression the same as another expression?
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        get HashCode for comparing two expressions
        Overrides:
        hashCode in class java.lang.Object
      • getIntrinsicDependencies

        public int getIntrinsicDependencies()
        Determine which aspects of the context the expression depends on. The result is a bitwise-or'ed value composed from constants such as StaticProperty.VARIABLES and StaticProperty.CURRENT_NODE
        Overrides:
        getIntrinsicDependencies in class SingleNodeExpression
        Returns:
        a set of bit-significant flags identifying the "intrinsic" dependencies. The flags are documented in class net.sf.saxon.value.StaticProperty
      • display

        public void display​(int level,
                            java.io.PrintStream out,
                            Configuration config)
        Diagnostic print of expression structure
        Parameters:
        level - indentation level for this expression
        out - Output destination