Uses of Class
org.antlr.v4.tool.Rule
Packages that use Rule
Package
Description
-
Uses of Rule in org.antlr.v4
Methods in org.antlr.v4 with parameters of type RuleModifier and TypeMethodDescriptionprotected 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 RuleModifier and TypeFieldDescriptionLeftRecursionDetector.listOfRecursiveCycles
Holds a list of cycles (sets of rule names).LeftRecursiveRuleTransformer.rules
Methods in org.antlr.v4.analysis with parameters of type RuleModifier and TypeMethodDescriptionprotected void
LeftRecursionDetector.addRulesToCycle
(Rule enclosingRule, Rule targetRule) enclosingRule calls targetRule.boolean
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 RuleModifierConstructorDescriptionLeftRecursiveRuleTransformer
(GrammarRootAST ast, Collection<Rule> rules, Grammar g) -
Uses of Rule in org.antlr.v4.automata
Fields in org.antlr.v4.automata declared as RuleFields in org.antlr.v4.automata with type parameters of type RuleModifier and TypeFieldDescriptionParserATNFactory.preventEpsilonClosureBlocks
ParserATNFactory.preventEpsilonOptionalBlocks
Method parameters in org.antlr.v4.automata with type arguments of type RuleModifier and TypeMethodDescriptionprotected void
ParserATNFactory._createATN
(Collection<Rule> rules) -
Uses of Rule in org.antlr.v4.codegen
Methods in org.antlr.v4.codegen with parameters of type RuleModifier and TypeMethodDescriptionvoid
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.Target.getRuleFunctionContextStructName
(Rule r) BlankOutputModelFactory.rulePostamble
(RuleFunction function, Rule r) DefaultOutputModelFactory.rulePostamble
(RuleFunction function, Rule r) OutputModelController.rulePostamble
(RuleFunction function, Rule r) OutputModelFactory.rulePostamble
(RuleFunction function, Rule r) -
Uses of Rule in org.antlr.v4.codegen.model
Fields in org.antlr.v4.codegen.model declared as RuleFields in org.antlr.v4.codegen.model with type parameters of type RuleMethods in org.antlr.v4.codegen.model with parameters of type RuleModifier and TypeMethodDescriptionvoid
RuleFunction.addContextGetters
(OutputModelFactory factory, Rule r) void
RuleFunction.fillNamedActions
(OutputModelFactory factory, Rule r) Constructors in org.antlr.v4.codegen.model with parameters of type RuleModifierConstructorDescriptionRuleActionFunction
(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 RuleModifier and TypeMethodDescriptionvoid
AltLabelStructDecl.addDispatchMethods
(Rule r) void
StructDecl.addDispatchMethods
(Rule r) Constructors in org.antlr.v4.codegen.model.decl with parameters of type RuleModifierConstructorDescriptionAltLabelStructDecl
(OutputModelFactory factory, Rule r, int altNum, String label) StructDecl
(OutputModelFactory factory, Rule r) protected
StructDecl
(OutputModelFactory factory, Rule r, String name) -
Uses of Rule in org.antlr.v4.semantics
Fields in org.antlr.v4.semantics declared as RuleFields in org.antlr.v4.semantics with type parameters of type RuleMethods in org.antlr.v4.semantics that return RuleMethods in org.antlr.v4.semantics that return types with arguments of type RuleModifier and TypeMethodDescriptionUseDefAnalyzer.getRuleDependencies
(Grammar g) Find all rules reachable from r directly or indirectly for all r in gUseDefAnalyzer.getRuleDependencies
(Grammar g) Find all rules reachable from r directly or indirectly for all r in gUseDefAnalyzer.getRuleDependencies
(Grammar g, Collection<Rule> rules) UseDefAnalyzer.getRuleDependencies
(Grammar g, Collection<Rule> rules) UseDefAnalyzer.getRuleDependencies
(LexerGrammar g, String modeName) UseDefAnalyzer.getRuleDependencies
(LexerGrammar g, String modeName) Methods in org.antlr.v4.semantics with parameters of type RuleModifier and TypeMethodDescriptionprotected void
SymbolChecks.checkDeclarationRuleConflicts
(Rule r, AttributeDict attributes, Set<String> ruleNames, ErrorType errorType) void
SymbolChecks.checkForAttributeConflicts
(Rule r) void
SymbolChecks.checkForLabelConflict
(Rule r, GrammarAST labelID) private void
SymbolChecks.checkForOverlap
(Grammar g, Rule rule1, Rule rule2, List<String> firstTokenStringValues, List<String> secondTokenStringValues) For same rule compare values from next index: TOKEN_WITH_SAME_VALUES: 'asdf' | 'asdf'; For different rules compare from start value: TOKEN1: 'asdf'; TOKEN2: 'asdf';private void
SymbolChecks.checkForTypeMismatch
(Rule r, LabelElementPair prevLabelPair, LabelElementPair labelPair) private void
SymbolChecks.checkLabelPairs
(Rule r, Map<String, LabelElementPair> labelNameSpace, List<LabelElementPair> pairs) protected void
SymbolChecks.checkLocalConflictingDeclarations
(Rule r, AttributeDict attributes, AttributeDict referenceAttributes, ErrorType errorType) SymbolChecks.getSingleTokenValues
(Rule rule) (package private) boolean
SemanticPipeline.hasTypeOrMoreCommand
(Rule r) Method parameters in org.antlr.v4.semantics with type arguments of type RuleModifier and TypeMethodDescriptionvoid
SymbolChecks.checkForLabelConflicts
(Collection<Rule> rules) Make sure a label doesn't conflict with another symbol.protected void
SymbolChecks.checkReservedNames
(Collection<Rule> rules) UseDefAnalyzer.getRuleDependencies
(Grammar g, Collection<Rule> rules) Constructors in org.antlr.v4.semantics with parameters of type RuleModifierConstructorDescriptionActionSniffer
(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.toolFields in org.antlr.v4.tool declared as RuleFields in org.antlr.v4.tool with type parameters of type RuleModifier and TypeFieldDescriptionGrammar.indexToRule
LexerGrammar.modes
DEFAULT_MODE rules are added first due to grammar syntax orderGrammar.rules
All rules defined in this specific grammar, not imported.Methods in org.antlr.v4.tool that return RuleModifier and TypeMethodDescriptionGrammar.getRule
(int index) Alternative.resolveToRule
(String x) x can be ruleref or rule label.Rule.resolveToRule
(String x) Methods in org.antlr.v4.tool with parameters of type RuleModifier and TypeMethodDescriptionboolean
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 RuleModifier and TypeMethodDescriptionprotected 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 RuleConstructor parameters in org.antlr.v4.tool with type arguments of type RuleModifierConstructorDescriptionLeftRecursionCyclesMessage
(String fileName, Collection<? extends Collection<Rule>> cycles)