Class AstNode

  • Direct Known Subclasses:
    Field, Fields

    public abstract class AstNode
    extends Object
    Represents a node in a partial response AST. All other nodes types extend from this type.
    Author:
    Matt Nathan
    • Constructor Detail

      • AstNode

        public AstNode()
    • Method Detail

      • apply

        public abstract void apply​(AstVisitor visitor)
        Apply the given visitor over the tree represented by this node.
      • equals

        public boolean equals​(@Nullable
                              Object other)
        Compares objects by string.
        Overrides:
        equals in class Object
        Parameters:
        other - The other object
        Returns:
        Whether the string representations of this and other are the same
      • hashCode

        public int hashCode()
        Uses the string representation to compute the hash.
        Overrides:
        hashCode in class Object
        Returns:
        The hash code.