Uses of Class
org.antlr.v4.runtime.misc.Pair
Packages that use Pair
Package
Description
-
Uses of Pair in org.antlr.v4.analysis
Fields in org.antlr.v4.analysis with type parameters of type PairModifier and TypeFieldDescriptionLeftRecursiveRuleAnalyzer.leftRecursiveRuleRefLabels
Pointer to ID node of ^(= ID element) -
Uses of Pair in org.antlr.v4.codegen.model
Methods in org.antlr.v4.codegen.model that return PairModifier and TypeMethodDescriptionprotected Pair
<FrequencySet<String>, FrequencySet<String>> RuleFunction.getElementFrequenciesForAlt
(AltAST ast) Given list of X and r refs in alt, compute how many of each there are -
Uses of Pair in org.antlr.v4.parse
Methods in org.antlr.v4.parse that return PairModifier and TypeMethodDescriptionScopeParser._parsePostfixDecl
(Attribute attr, String decl, ActionAST a, Grammar g) ScopeParser._parsePrefixDecl
(Attribute attr, String decl, ActionAST a, Grammar g) Methods in org.antlr.v4.parse that return types with arguments of type PairModifier and TypeMethodDescriptionScopeParser.splitDecls
(String s, int separatorChar) Given an argument list likeMethods in org.antlr.v4.parse with parameters of type PairModifier and TypeMethodDescriptionstatic Attribute
For decls like "String foo" or "char *foo32[]" compute the ID and type declarations.Method parameters in org.antlr.v4.parse with type arguments of type Pair -
Uses of Pair in org.antlr.v4.runtime
Fields in org.antlr.v4.runtime declared as PairModifier and TypeFieldDescriptionprotected Pair
<TokenSource, CharStream> Lexer._tokenFactorySourcePair
protected static final Pair
<TokenSource, CharStream> CommonToken.EMPTY_SOURCE
An emptyPair
which is used as the default value ofCommonToken.source
for tokens that do not have a source.protected Pair
<TokenSource, CharStream> CommonToken.source
This is the backing field forCommonToken.getTokenSource()
andCommonToken.getInputStream()
.Fields in org.antlr.v4.runtime with type parameters of type PairModifier and TypeFieldDescriptionprotected final Deque
<Pair<ParserRuleContext, Integer>> ParserInterpreter._parentContextStack
This stack corresponds to the _parentctx, _parentState pair of locals that would exist on call stack frames with a recursive descent parser; in the generated function for a left-recursive rule you'd see: private EContext e(int _p) throws RecognitionException { ParserRuleContext _parentctx = _ctx; // Pair.a int _parentState = getState(); // Pair.b ...Methods in org.antlr.v4.runtime with parameters of type PairModifier and TypeMethodDescriptionCommonTokenFactory.create
(Pair<TokenSource, CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine) TokenFactory.create
(Pair<TokenSource, CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine) This is the method used to create tokens in the lexer and in the error handling strategy.Constructors in org.antlr.v4.runtime with parameters of type PairModifierConstructorDescriptionCommonToken
(Pair<TokenSource, CharStream> source, int type, int channel, int start, int stop) -
Uses of Pair in org.antlr.v4.runtime.atn
Methods in org.antlr.v4.runtime.atn that return PairModifier and TypeMethodDescriptionprotected Pair
<ATNConfigSet, ATNConfigSet> ParserATNSimulator.splitAccordingToSemanticValidity
(ATNConfigSet configs, ParserRuleContext outerContext) Walk the list of configurations and split them according to those that have preds evaluating to true/false. -
Uses of Pair in org.antlr.v4.runtime.misc
Methods in org.antlr.v4.runtime.misc that return types with arguments of type Pair -
Uses of Pair in org.antlr.v4.tool
Fields in org.antlr.v4.tool with type parameters of type PairModifier and TypeFieldDescriptionLeftRecursiveRule.leftRecursiveRuleRefLabels
Did we delete any labels on direct left-recur refs? Points at ID of ^(= ID el)Methods in org.antlr.v4.tool that return types with arguments of type PairModifier and TypeMethodDescriptionLeftRecursiveRule.getAltLabels()
Get -> labels from those alts we deleted for left-recursive rules.Rule.getAltLabels()
Get#
labels.static List
<Pair<GrammarAST, GrammarAST>> Grammar.getStringLiteralAliasesFromLexerRules
(GrammarRootAST ast) Return list of (TOKEN_NAME node, 'literal' node) pairsMethod parameters in org.antlr.v4.tool with type arguments of type PairModifier and TypeMethodDescriptionprotected static boolean
Grammar.defAlias
(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST, GrammarAST>> lexerRuleToStringLiteral)