Class ASTNode

java.lang.Object
org.parboiled.trees.ImmutableGraphNode<T>
org.parboiled.trees.ImmutableTreeNode<T>
org.parboiled.trees.ImmutableBinaryTreeNode<ASTNode>
org.codice.ddf.opensearch.endpoint.ASTNode
All Implemented Interfaces:
org.parboiled.trees.BinaryTreeNode<ASTNode>, org.parboiled.trees.GraphNode<ASTNode>, org.parboiled.trees.TreeNode<ASTNode>
Direct Known Subclasses:
KeywordASTNode, OperatorASTNode, PhraseDelimiterASTNode

public abstract class ASTNode extends org.parboiled.trees.ImmutableBinaryTreeNode<ASTNode>
Abstract Syntax Tree Node
Abstract class that extends built-in Parboiled tree node class.

During the parsing of the keyword string, the parser creates and stores instances of this class's subclasses on the processing stack. This allows the parser to build an Abstract Syntax Tree from the keyword string.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ASTNode(ASTNode left, ASTNode right)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract String
     
     
    abstract boolean
     
    abstract boolean
     
    abstract boolean
     
    abstract String
     

    Methods inherited from class org.parboiled.trees.ImmutableBinaryTreeNode

    left, right

    Methods inherited from class org.parboiled.trees.ImmutableTreeNode

    acquireChildren, getParent

    Methods inherited from class org.parboiled.trees.ImmutableGraphNode

    getChildren

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.parboiled.trees.GraphNode

    getChildren

    Methods inherited from interface org.parboiled.trees.TreeNode

    getParent
  • Constructor Details

  • Method Details

    • getKeyword

      public abstract String getKeyword()
    • getOperator

      public abstract ASTNode.Operator getOperator()
    • isKeyword

      public abstract boolean isKeyword()
    • isOperator

      public abstract boolean isOperator()
    • isPhraseStartDelimiter

      public abstract boolean isPhraseStartDelimiter()
    • toString

      public abstract String toString()
      Overrides:
      toString in class Object