Uses of Class
org.antlr.v4.runtime.misc.Pair
-
Packages that use Pair Package Description org.antlr.v4.analysis org.antlr.v4.codegen.model org.antlr.v4.parse org.antlr.v4.runtime org.antlr.v4.runtime.atn org.antlr.v4.runtime.misc org.antlr.v4.tool -
-
Uses of Pair in org.antlr.v4.analysis
Fields in org.antlr.v4.analysis with type parameters of type Pair Modifier and Type Field Description List<Pair<GrammarAST,String>>
LeftRecursiveRuleAnalyzer. 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 Pair Modifier and Type Method Description protected 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 Pair 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)
Methods in org.antlr.v4.parse that return types with arguments of type Pair Modifier and Type Method Description static List<Pair<String,Integer>>
ScopeParser. splitDecls(String s, int separatorChar)
Given an argument list likeMethods in org.antlr.v4.parse with parameters of type Pair Modifier and Type Method Description 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.Method parameters in org.antlr.v4.parse with type arguments of type Pair Modifier and Type Method Description static int
ScopeParser. _splitArgumentList(String actionText, int start, int targetChar, int separatorChar, List<Pair<String,Integer>> args)
-
Uses of Pair in org.antlr.v4.runtime
Fields in org.antlr.v4.runtime declared as Pair Modifier and Type Field Description protected Pair<TokenSource,CharStream>
Lexer. _tokenFactorySourcePair
protected static 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 Pair Modifier and Type Field Description protected 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 Pair Modifier and Type Method Description CommonToken
CommonTokenFactory. create(Pair<TokenSource,CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine)
Symbol
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 Pair Constructor Description CommonToken(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 Pair Modifier and Type Method Description protected 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 Modifier and Type Method Description List<Pair<K,V>>
MultiMap. getPairs()
-
Uses of Pair in org.antlr.v4.tool
Fields in org.antlr.v4.tool with type parameters of type Pair Modifier and Type Field Description List<Pair<GrammarAST,String>>
LeftRecursiveRule. 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 Pair Modifier and Type Method Description Map<String,List<Pair<Integer,AltAST>>>
LeftRecursiveRule. getAltLabels()
Get -> labels from those alts we deleted for left-recursive rules.Map<String,List<Pair<Integer,AltAST>>>
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 Pair Modifier and Type Method Description protected static boolean
Grammar. defAlias(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Pair<GrammarAST,GrammarAST>> lexerRuleToStringLiteral)
-