Class AltAST

java.lang.Object
org.antlr.runtime.tree.BaseTree
org.antlr.runtime.tree.CommonTree
All Implemented Interfaces:
org.antlr.runtime.tree.Tree

public class AltAST extends GrammarASTWithOptions
Any ALT (which can be child of ALT_REWRITE node)
  • Field Details

    • alt

      public Alternative alt
    • leftRecursiveAltInfo

      public LeftRecursiveRuleAltInfo leftRecursiveAltInfo
      If we transformed this alt from a left-recursive one, need info on it
    • altLabel

      public GrammarAST altLabel
      If someone specified an outermost alternative label with #foo. Token type will be ID.
  • Constructor Details

    • AltAST

      public AltAST(AltAST node)
    • AltAST

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

      public AltAST(int type)
    • AltAST

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

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