Class NodeTypeQueryNode


  • public class NodeTypeQueryNode
    extends ExactQueryNode
    Implements a query node that defines a node type match.
    • Constructor Detail

      • NodeTypeQueryNode

        protected NodeTypeQueryNode​(QueryNode parent,
                                    Name nodeType)
        Creates a new NodeTypeQueryNode.
        Parameters:
        parent - the parent node for this query node.
        nodeType - the name of the node type.
    • Method Detail

      • getType

        public int getType()
        Returns the type of this node.
        Overrides:
        getType in class ExactQueryNode
        Returns:
        the type of this node.
      • equals

        public boolean equals​(Object obj)
        Returns true if obj is the same type of QueryNode as this node and is equal to this node.
        Overrides:
        equals in class ExactQueryNode
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if obj is equal to this; false otherwise.