Uses of Class
org.antlr.v4.tool.ast.ActionAST
-
Packages that use ActionAST Package Description org.antlr.v4.automata org.antlr.v4.codegen org.antlr.v4.codegen.model org.antlr.v4.parse org.antlr.v4.semantics org.antlr.v4.tool org.antlr.v4.tool.ast -
-
Uses of ActionAST in org.antlr.v4.automata
Methods in org.antlr.v4.automata with parameters of type ActionAST Modifier and Type Method Description ATNFactory.Handle
ATNFactory. action(ActionAST action)
Build what amounts to an epsilon transition with an action.ATNFactory.Handle
LexerATNFactory. action(ActionAST action)
ATNFactory.Handle
ParserATNFactory. action(ActionAST action)
Build what amounts to an epsilon transition with an action. -
Uses of ActionAST in org.antlr.v4.codegen
Methods in org.antlr.v4.codegen with parameters of type ActionAST Modifier and Type Method Description List<SrcOp>
BlankOutputModelFactory. action(ActionAST ast)
List<SrcOp>
OutputModelController. action(ActionAST ast)
List<SrcOp>
OutputModelFactory. action(ActionAST ast)
List<SrcOp>
ParserFactory. action(ActionAST ast)
List<SrcOp>
BlankOutputModelFactory. sempred(ActionAST ast)
List<SrcOp>
OutputModelController. sempred(ActionAST ast)
List<SrcOp>
OutputModelFactory. sempred(ActionAST ast)
List<SrcOp>
ParserFactory. sempred(ActionAST ast)
static List<ActionChunk>
ActionTranslator. translateAction(OutputModelFactory factory, RuleFunction rf, org.antlr.runtime.Token tokenWithinAction, ActionAST node)
static List<ActionChunk>
ActionTranslator. translateActionChunk(OutputModelFactory factory, RuleFunction rf, String action, ActionAST node)
Constructors in org.antlr.v4.codegen with parameters of type ActionAST Constructor Description ActionTranslator(OutputModelFactory factory, ActionAST node)
-
Uses of ActionAST in org.antlr.v4.codegen.model
Methods in org.antlr.v4.codegen.model with parameters of type ActionAST Modifier and Type Method Description void
ElementFrequenciesVisitor. ruleRef(GrammarAST ref, ActionAST arg)
Method parameters in org.antlr.v4.codegen.model with type arguments of type ActionAST Modifier and Type Method Description Map<String,Action>
OutputFile. buildNamedActions(Grammar g, Predicate<ActionAST> filter)
Constructors in org.antlr.v4.codegen.model with parameters of type ActionAST Constructor Description Action(OutputModelFactory factory, ActionAST ast)
ArgAction(OutputModelFactory factory, ActionAST ast, String ctxType)
ExceptionClause(OutputModelFactory factory, ActionAST catchArg, ActionAST catchAction)
SemPred(OutputModelFactory factory, ActionAST ast)
-
Uses of ActionAST in org.antlr.v4.parse
Methods in org.antlr.v4.parse with parameters of type ActionAST Modifier and Type Method Description static Pair<Integer,Integer>
ScopeParser. _parsePostfixDecl(Attribute attr, String decl, ActionAST a, Grammar g)
static Pair<Integer,Integer>
ScopeParser. _parsePrefixDecl(Attribute attr, String decl, ActionAST a, Grammar g)
void
GrammarTreeVisitor. actionInAlt(ActionAST action)
void
GrammarTreeVisitor. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)
void
GrammarTreeVisitor. finallyAction(ActionAST action)
void
GrammarTreeVisitor. globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action)
static AttributeDict
ScopeParser. parse(ActionAST action, String s, char separator, Grammar g)
static Attribute
ScopeParser. parseAttributeDef(ActionAST action, Pair<String,Integer> decl, Grammar g)
For decls like "String foo" or "char *foo32[]" compute the ID and type declarations.static AttributeDict
ScopeParser. parseTypedArgList(ActionAST action, String s, Grammar g)
Given an arg or retval scope definition list likevoid
GrammarTreeVisitor. ruleCatch(GrammarAST arg, ActionAST action)
void
GrammarTreeVisitor. ruleRef(GrammarAST ref, ActionAST arg)
-
Uses of ActionAST in org.antlr.v4.semantics
Fields in org.antlr.v4.semantics declared as ActionAST Modifier and Type Field Description ActionAST
ActionSniffer. node
ActionAST
AttributeChecks. node
Methods in org.antlr.v4.semantics with parameters of type ActionAST Modifier and Type Method Description void
BasicSemanticChecks. actionInAlt(ActionAST action)
void
SymbolCollector. actionInAlt(ActionAST action)
static boolean
UseDefAnalyzer. actionIsContextDependent(ActionAST actionAST)
void
BasicSemanticChecks. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)
void
RuleCollector. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)
void
SymbolCollector. discoverRule(RuleAST rule, GrammarAST ID, List<GrammarAST> modifiers, ActionAST arg, ActionAST returns, GrammarAST thrws, GrammarAST options, ActionAST locals, List<GrammarAST> actions, GrammarAST block)
void
SymbolCollector. finallyAction(ActionAST action)
void
SymbolCollector. globalNamedAction(GrammarAST scope, GrammarAST ID, ActionAST action)
void
SymbolCollector. ruleCatch(GrammarAST arg, ActionAST action)
void
BasicSemanticChecks. ruleRef(GrammarAST ref, ActionAST arg)
void
SymbolCollector. ruleRef(GrammarAST ref, ActionAST arg)
Constructors in org.antlr.v4.semantics with parameters of type ActionAST Constructor Description ActionSniffer(Grammar g, Rule r, Alternative alt, ActionAST node, org.antlr.runtime.Token actionToken)
AttributeChecks(Grammar g, Rule r, Alternative alt, ActionAST node, org.antlr.runtime.Token actionToken)
-
Uses of ActionAST in org.antlr.v4.tool
Fields in org.antlr.v4.tool declared as ActionAST Modifier and Type Field Description ActionAST
Rule. finallyAction
Fields in org.antlr.v4.tool with type parameters of type ActionAST Modifier and Type Field Description List<ActionAST>
Alternative. actions
Track all executable actions other than named actions like @init and catch/finally (not in an alt).List<ActionAST>
Rule. actions
Track all executable actions other than named actions like @init and catch/finally (not in an alt).LinkedHashMap<ActionAST,Integer>
Grammar. lexerActions
Tracks all user lexer actions in all alternatives of all rules.Map<String,ActionAST>
Grammar. namedActions
Map a name to an action.Map<String,ActionAST>
Rule. namedActions
Map a name to an action for this rule like @init {...}.Methods in org.antlr.v4.tool with parameters of type ActionAST Modifier and Type Method Description void
Rule. defineActionInAlt(int currentAlt, ActionAST actionAST)
void
Rule. defineLexerAction(ActionAST actionAST)
Lexer actions are numbered across rules 0..n-1boolean
Alternative. resolvesToAttributeDict(String x, ActionAST node)
boolean
AttributeResolver. resolvesToAttributeDict(String x, ActionAST node)
boolean
Grammar. resolvesToAttributeDict(String x, ActionAST node)
boolean
Rule. resolvesToAttributeDict(String x, ActionAST node)
boolean
Alternative. resolvesToLabel(String x, ActionAST node)
boolean
AttributeResolver. resolvesToLabel(String x, ActionAST node)
boolean
Grammar. resolvesToLabel(String x, ActionAST node)
boolean
Rule. resolvesToLabel(String x, ActionAST node)
boolean
Alternative. resolvesToListLabel(String x, ActionAST node)
boolean
AttributeResolver. resolvesToListLabel(String x, ActionAST node)
boolean
Grammar. resolvesToListLabel(String x, ActionAST node)
boolean
Rule. resolvesToListLabel(String x, ActionAST node)
boolean
Alternative. resolvesToToken(String x, ActionAST node)
boolean
AttributeResolver. resolvesToToken(String x, ActionAST node)
boolean
Grammar. resolvesToToken(String x, ActionAST node)
boolean
Rule. resolvesToToken(String x, ActionAST node)
Attribute
Alternative. resolveToAttribute(String x, String y, ActionAST node)
$x.y, x can be surrounding rule, token/rule/label ref.Attribute
Alternative. resolveToAttribute(String x, ActionAST node)
$x Attribute: rule arguments, return values, predefined rule prop.Attribute
AttributeResolver. resolveToAttribute(String x, String y, ActionAST node)
Attribute
AttributeResolver. resolveToAttribute(String x, ActionAST node)
Attribute
Grammar. resolveToAttribute(String x, String y, ActionAST node)
Attribute
Grammar. resolveToAttribute(String x, ActionAST node)
Attribute
Rule. resolveToAttribute(String x, String y, ActionAST node)
$x.y Attribute: x is surrounding rule, label ref (in any alts)Attribute
Rule. resolveToAttribute(String x, ActionAST node)
$x Attribute: rule arguments, return values, predefined rule prop. -
Uses of ActionAST in org.antlr.v4.tool.ast
Subclasses of ActionAST in org.antlr.v4.tool.ast Modifier and Type Class Description class
PredAST
Methods in org.antlr.v4.tool.ast that return ActionAST Modifier and Type Method Description ActionAST
ActionAST. dupNode()
ActionAST
RuleAST. getLexerAction()
Constructors in org.antlr.v4.tool.ast with parameters of type ActionAST Constructor Description ActionAST(ActionAST node)
-