Class GrammarASTWithOptions

java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
org.antlr.v4.tool.ast.GrammarAST
org.antlr.v4.tool.ast.GrammarASTWithOptions
All Implemented Interfaces:
org.antlr.runtime.tree.Tree
Direct Known Subclasses:
ActionAST, AltAST, BlockAST, GrammarRootAST, RuleAST, RuleRefAST, TerminalAST

public abstract class GrammarASTWithOptions extends GrammarAST
  • Field Details

  • Constructor Details

    • GrammarASTWithOptions

      public GrammarASTWithOptions(GrammarASTWithOptions node)
    • GrammarASTWithOptions

      public GrammarASTWithOptions(org.antlr.runtime.Token t)
    • GrammarASTWithOptions

      public GrammarASTWithOptions(int type)
    • GrammarASTWithOptions

      public GrammarASTWithOptions(int type, org.antlr.runtime.Token t)
    • GrammarASTWithOptions

      public GrammarASTWithOptions(int type, org.antlr.runtime.Token t, String text)
  • Method Details

    • setOption

      public void setOption(String key, GrammarAST node)
    • getOptionString

      public String getOptionString(String key)
    • getOptionAST

      public GrammarAST getOptionAST(String key)
      Gets AST node holding value for option key; ignores default options and command-line forced options.
    • getNumberOfOptions

      public int getNumberOfOptions()
    • dupNode

      public abstract GrammarASTWithOptions dupNode()
      Specified by:
      dupNode in interface org.antlr.runtime.tree.Tree
      Overrides:
      dupNode in class GrammarAST
    • getOptions

      public Map<String,GrammarAST> getOptions()