Class Node_ANY

  • All Implemented Interfaces:
    java.io.Serializable

    public class Node_ANY
    extends Node_Fluid
    A Node_ANY (there should be only one) is a meta-node that is used to stand for any other node in a query.
    See Also:
    Serialized Form
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Node_ANY's are only equal to other Node_ANY's
        Specified by:
        equals in class Node
      • visitWith

        public java.lang.Object visitWith​(NodeVisitor v)
        Description copied from class: Node
        Visit a Node and dispatch on it to the appropriate method from the NodeVisitor v.
        Specified by:
        visitWith in class Node
        Parameters:
        v - the visitor to apply to the node
        Returns:
        the value returned by the applied method
      • matches

        public boolean matches​(Node other)
        Description copied from class: Node
        Answer true iff this node accepts the other one as a match. The default is an equality test; it is over-ridden in subclasses to provide the appropriate semantics for literals, ANY, and variables.
        Overrides:
        matches in class Node
        Parameters:
        other - a node to test for matching
        Returns:
        true iff this node accepts the other as a match
      • toString

        public java.lang.String toString()
        Description copied from class: Node
        Answer a human-readable representation of this Node. It will not compress URIs, nor quote literals (because at the moment too many places use toString() for something machine-oriented).
        Overrides:
        toString in class Node
      • toString

        public java.lang.String toString​(PrefixMapping pm,
                                         boolean quoting)
        Description copied from class: Node
        Answer a human readable representation of this Node, quoting literals if specified, and compressing URIs using the prefix mapping supplied.
        Overrides:
        toString in class Node