Uses of Class
org.antlr.v4.tool.Rule
-
Packages that use Rule Package Description org.antlr.v4 org.antlr.v4.analysis org.antlr.v4.automata org.antlr.v4.codegen org.antlr.v4.codegen.model org.antlr.v4.codegen.model.decl org.antlr.v4.semantics org.antlr.v4.tool -
-
Uses of Rule in org.antlr.v4
Methods in org.antlr.v4 with parameters of type Rule Modifier and Type Method Description protected void
Tool. writeDOTFile(Grammar g, Rule r, String dot)
-
Uses of Rule in org.antlr.v4.analysis
Fields in org.antlr.v4.analysis with type parameters of type Rule Modifier and Type Field Description List<Set<Rule>>
LeftRecursionDetector. listOfRecursiveCycles
Holds a list of cycles (sets of rule names).Collection<Rule>
LeftRecursiveRuleTransformer. rules
Methods in org.antlr.v4.analysis with parameters of type Rule Modifier and Type Method Description protected void
LeftRecursionDetector. addRulesToCycle(Rule enclosingRule, Rule targetRule)
enclosingRule calls targetRule.boolean
LeftRecursionDetector. check(Rule enclosingRule, ATNState s, Set<ATNState> visitedStates)
From state s, look for any transition to a rule that is currently being traced.Constructor parameters in org.antlr.v4.analysis with type arguments of type Rule Constructor Description LeftRecursiveRuleTransformer(GrammarRootAST ast, Collection<Rule> rules, Grammar g)
-
Uses of Rule in org.antlr.v4.automata
Fields in org.antlr.v4.automata declared as Rule Modifier and Type Field Description Rule
ParserATNFactory. currentRule
Fields in org.antlr.v4.automata with type parameters of type Rule Modifier and Type Field Description protected List<Triple<Rule,ATNState,ATNState>>
ParserATNFactory. preventEpsilonClosureBlocks
protected List<Triple<Rule,ATNState,ATNState>>
ParserATNFactory. preventEpsilonOptionalBlocks
Method parameters in org.antlr.v4.automata with type arguments of type Rule Modifier and Type Method Description protected void
ParserATNFactory. _createATN(Collection<Rule> rules)
-
Uses of Rule in org.antlr.v4.codegen
Methods in org.antlr.v4.codegen with parameters of type Rule Modifier and Type Method Description void
OutputModelController. buildLexerRuleActions(Lexer lexer, Rule r)
void
OutputModelController. buildNormalRuleFunction(Rule r, RuleFunction function)
void
OutputModelController. buildRuleFunction(Parser parser, Rule r)
Create RuleFunction per rule and update sempreds,actions of parser output object with stuff found in r.String
Target. getRuleFunctionContextStructName(Rule r)
RuleFunction
BlankOutputModelFactory. rule(Rule r)
RuleFunction
OutputModelController. rule(Rule r)
RuleFunction
OutputModelFactory. rule(Rule r)
RuleFunction
ParserFactory. rule(Rule r)
List<SrcOp>
BlankOutputModelFactory. rulePostamble(RuleFunction function, Rule r)
List<SrcOp>
DefaultOutputModelFactory. rulePostamble(RuleFunction function, Rule r)
List<SrcOp>
OutputModelController. rulePostamble(RuleFunction function, Rule r)
List<SrcOp>
OutputModelFactory. rulePostamble(RuleFunction function, Rule r)
-
Uses of Rule in org.antlr.v4.codegen.model
Fields in org.antlr.v4.codegen.model declared as Rule Modifier and Type Field Description Rule
RuleFunction. rule
Fields in org.antlr.v4.codegen.model with type parameters of type Rule Modifier and Type Field Description LinkedHashMap<Rule,RuleActionFunction>
Lexer. actionFuncs
Collection<Rule>
Recognizer. rules
LinkedHashMap<Rule,RuleSempredFunction>
Recognizer. sempredFuncs
Methods in org.antlr.v4.codegen.model with parameters of type Rule Modifier and Type Method Description void
RuleFunction. addContextGetters(OutputModelFactory factory, Rule r)
void
RuleFunction. fillNamedActions(OutputModelFactory factory, Rule r)
Constructors in org.antlr.v4.codegen.model with parameters of type Rule Constructor Description RuleActionFunction(OutputModelFactory factory, Rule r, String ctxType)
RuleFunction(OutputModelFactory factory, Rule r)
RuleSempredFunction(OutputModelFactory factory, Rule r, String ctxType)
-
Uses of Rule in org.antlr.v4.codegen.model.decl
Methods in org.antlr.v4.codegen.model.decl with parameters of type Rule Modifier and Type Method Description void
AltLabelStructDecl. addDispatchMethods(Rule r)
void
StructDecl. addDispatchMethods(Rule r)
Constructors in org.antlr.v4.codegen.model.decl with parameters of type Rule Constructor Description AltLabelStructDecl(OutputModelFactory factory, Rule r, int altNum, String label)
StructDecl(OutputModelFactory factory, Rule r)
StructDecl(OutputModelFactory factory, Rule r, String name)
-
Uses of Rule in org.antlr.v4.semantics
Fields in org.antlr.v4.semantics declared as Rule Modifier and Type Field Description Rule
SymbolCollector. currentRule
Rule
ActionSniffer. r
Rule
AttributeChecks. r
Fields in org.antlr.v4.semantics with type parameters of type Rule Modifier and Type Field Description OrderedHashMap<String,Rule>
RuleCollector. rules
Methods in org.antlr.v4.semantics that return Rule Modifier and Type Method Description Rule
AttributeChecks. isolatedRuleRef(String x)
Methods in org.antlr.v4.semantics that return types with arguments of type Rule Modifier and Type Method Description static Map<Rule,Set<Rule>>
UseDefAnalyzer. getRuleDependencies(Grammar g)
Find all rules reachable from r directly or indirectly for all r in gstatic Map<Rule,Set<Rule>>
UseDefAnalyzer. getRuleDependencies(Grammar g)
Find all rules reachable from r directly or indirectly for all r in gstatic Map<Rule,Set<Rule>>
UseDefAnalyzer. getRuleDependencies(Grammar g, Collection<Rule> rules)
static Map<Rule,Set<Rule>>
UseDefAnalyzer. getRuleDependencies(Grammar g, Collection<Rule> rules)
static Map<Rule,Set<Rule>>
UseDefAnalyzer. getRuleDependencies(LexerGrammar g, String modeName)
static Map<Rule,Set<Rule>>
UseDefAnalyzer. getRuleDependencies(LexerGrammar g, String modeName)
Methods in org.antlr.v4.semantics with parameters of type Rule Modifier and Type Method Description protected void
SymbolChecks. checkDeclarationRuleConflicts(Rule r, AttributeDict attributes, Set<String> ruleNames, ErrorType errorType)
void
SymbolChecks. checkForAttributeConflicts(Rule r)
void
SymbolChecks. checkForLabelConflict(Rule r, GrammarAST labelID)
protected void
SymbolChecks. checkLocalConflictingDeclarations(Rule r, AttributeDict attributes, AttributeDict referenceAttributes, ErrorType errorType)
Method parameters in org.antlr.v4.semantics with type arguments of type Rule Modifier and Type Method Description void
SymbolChecks. checkForLabelConflicts(Collection<Rule> rules)
Make sure a label doesn't conflict with another symbol.protected void
SymbolChecks. checkReservedNames(Collection<Rule> rules)
static Map<Rule,Set<Rule>>
UseDefAnalyzer. getRuleDependencies(Grammar g, Collection<Rule> rules)
Constructors in org.antlr.v4.semantics with parameters of type Rule 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 Rule in org.antlr.v4.tool
Subclasses of Rule in org.antlr.v4.tool Modifier and Type Class Description class
LeftRecursiveRule
Fields in org.antlr.v4.tool declared as Rule Modifier and Type Field Description Rule
Alternative. rule
Fields in org.antlr.v4.tool with type parameters of type Rule Modifier and Type Field Description List<Rule>
Grammar. indexToRule
MultiMap<String,Rule>
LexerGrammar. modes
DEFAULT_MODE rules are added first due to grammar syntax orderOrderedHashMap<String,Rule>
Grammar. rules
All rules defined in this specific grammar, not imported.Methods in org.antlr.v4.tool that return Rule Modifier and Type Method Description Rule
Grammar. getRule(int index)
Rule
Grammar. getRule(String name)
Rule
Grammar. getRule(String grammarName, String ruleName)
Rule
Alternative. resolveToRule(String x)
x can be ruleref or rule label.Rule
Rule. resolveToRule(String x)
Methods in org.antlr.v4.tool with parameters of type Rule Modifier and Type Method Description boolean
Grammar. defineRule(Rule r)
Define the specified rule in the grammar.boolean
LexerGrammar. defineRule(Rule r)
boolean
Grammar. undefineRule(Rule r)
Undefine the specified rule from thisGrammar
instance.boolean
LexerGrammar. undefineRule(Rule r)
Method parameters in org.antlr.v4.tool with type arguments of type Rule Modifier and Type Method Description protected static org.antlr.runtime.Token
LeftRecursionCyclesMessage. getStartTokenOfFirstRule(Collection<? extends Collection<Rule>> cycles)
void
ErrorManager. leftRecursionCycles(String fileName, Collection<? extends Collection<Rule>> cycles)
Constructors in org.antlr.v4.tool with parameters of type Rule Constructor Description Alternative(Rule r, int altNum)
Constructor parameters in org.antlr.v4.tool with type arguments of type Rule Constructor Description LeftRecursionCyclesMessage(String fileName, Collection<? extends Collection<Rule>> cycles)
-