Top Description Fields Constructors Methods
org.antlr.v4.tool.ast

public Class AltAST

extends GrammarASTWithOptions
Class Inheritance
Imports
org.antlr.runtime.Token, org.antlr.v4.analysis.LeftRecursiveRuleAltInfo, org.antlr.v4.tool.Alternative

Any ALT (which can be child of ALT_REWRITE node)

Field Summary

Modifier and TypeField and Description
public Alternative
public GrammarAST
altLabel

If someone specified an outermost alternative label with #foo.

public LeftRecursiveRuleAltInfo
leftRecursiveAltInfo

If we transformed this alt from a left-recursive one, need info on it

Inherited from org.antlr.v4.tool.ast.GrammarASTWithOptions:
options

Constructor Summary

AccessConstructor and Description
public
AltAST(AltAST node)

public
public
AltAST(int type)

public
AltAST(int type, Token t)

public
AltAST(int type, Token t, String text)

Method Summary

Modifier and TypeMethod and Description
public AltAST
public Object
Inherited from org.antlr.v4.tool.ast.GrammarASTWithOptions:
getNumberOfOptionsgetOptionASTgetOptionsgetOptionStringsetOption

Field Detail

altback to summary
public Alternative alt
altLabelback to summary
public GrammarAST altLabel

If someone specified an outermost alternative label with #foo. Token type will be ID.

leftRecursiveAltInfoback to summary
public LeftRecursiveRuleAltInfo leftRecursiveAltInfo

If we transformed this alt from a left-recursive one, need info on it

Constructor Detail

AltASTback to summary
public AltAST(AltAST node)
AltASTback to summary
public AltAST(Token t)
AltASTback to summary
public AltAST(int type)
AltASTback to summary
public AltAST(int type, Token t)
AltASTback to summary
public AltAST(int type, Token t, String text)

Method Detail

dupNodeback to summary
public AltAST dupNode()

Implements abstract org.antlr.v4.tool.ast.GrammarASTWithOptions.dupNode.

Implements org.antlr.runtime.tree.Tree.dupNode.

Annotations
@Override
visitback to summary
public Object visit(GrammarASTVisitor v)

Overrides org.antlr.v4.tool.ast.GrammarAST.visit.

Annotations
@Override