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 voidTool.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.listOfRecursiveCyclesHolds a list of cycles (sets of rule names).LeftRecursiveRuleTransformer.rulesMethods in org.antlr.v4.analysis with parameters of type RuleModifier and TypeMethodDescriptionprotected voidLeftRecursionDetector.addRulesToCycle(Rule enclosingRule, Rule targetRule) enclosingRule calls targetRule.booleanFrom 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.preventEpsilonClosureBlocksParserATNFactory.preventEpsilonOptionalBlocksMethod parameters in org.antlr.v4.automata with type arguments of type RuleModifier and TypeMethodDescriptionprotected voidParserATNFactory._createATN(Collection<Rule> rules) -
Uses of Rule in org.antlr.v4.codegen
Methods in org.antlr.v4.codegen with parameters of type RuleModifier and TypeMethodDescriptionvoidOutputModelController.buildLexerRuleActions(Lexer lexer, Rule r) voidOutputModelController.buildNormalRuleFunction(Rule r, RuleFunction function) voidOutputModelController.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 TypeMethodDescriptionvoidRuleFunction.addContextGetters(OutputModelFactory factory, Rule r) voidRuleFunction.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 TypeMethodDescriptionvoidAltLabelStructDecl.addDispatchMethods(Rule r) voidStructDecl.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) protectedStructDecl(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 voidSymbolChecks.checkDeclarationRuleConflicts(Rule r, AttributeDict attributes, Set<String> ruleNames, ErrorType errorType) voidSymbolChecks.checkForAttributeConflicts(Rule r) voidSymbolChecks.checkForLabelConflict(Rule r, GrammarAST labelID) private voidSymbolChecks.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 voidSymbolChecks.checkForTypeMismatch(Rule r, LabelElementPair prevLabelPair, LabelElementPair labelPair) private voidSymbolChecks.checkLabelPairs(Rule r, Map<String, LabelElementPair> labelNameSpace, List<LabelElementPair> pairs) protected voidSymbolChecks.checkLocalConflictingDeclarations(Rule r, AttributeDict attributes, AttributeDict referenceAttributes, ErrorType errorType) SymbolChecks.getSingleTokenValues(Rule rule) (package private) booleanSemanticPipeline.hasTypeOrMoreCommand(Rule r) Method parameters in org.antlr.v4.semantics with type arguments of type RuleModifier and TypeMethodDescriptionvoidSymbolChecks.checkForLabelConflicts(Collection<Rule> rules) Make sure a label doesn't conflict with another symbol.protected voidSymbolChecks.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.indexToRuleLexerGrammar.modesDEFAULT_MODE rules are added first due to grammar syntax orderGrammar.rulesAll 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 TypeMethodDescriptionbooleanGrammar.defineRule(Rule r) Define the specified rule in the grammar.booleanLexerGrammar.defineRule(Rule r) booleanGrammar.undefineRule(Rule r) Undefine the specified rule from thisGrammarinstance.booleanLexerGrammar.undefineRule(Rule r) Method parameters in org.antlr.v4.tool with type arguments of type RuleModifier and TypeMethodDescriptionprotected static org.antlr.runtime.TokenLeftRecursionCyclesMessage.getStartTokenOfFirstRule(Collection<? extends Collection<Rule>> cycles) voidErrorManager.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)