Uses of Class
org.antlr.v4.runtime.misc.Tuple2
Packages that use Tuple2
Package
Description
-
Uses of Tuple2 in org.antlr.v4.analysis
Fields in org.antlr.v4.analysis with type parameters of type Tuple2Modifier and TypeFieldDescriptionLeftRecursiveRuleAnalyzer.leftRecursiveRuleRefLabelsPointer to ID node of ^(= ID element) -
Uses of Tuple2 in org.antlr.v4.codegen.model
Methods in org.antlr.v4.codegen.model that return Tuple2Modifier and TypeMethodDescriptionprotected Tuple2<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 Tuple2 in org.antlr.v4.parse
Methods in org.antlr.v4.parse that return Tuple2Modifier 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 Tuple2Modifier and TypeMethodDescriptionScopeParser.splitDecls(String s, int separatorChar) Given an argument list likeMethods in org.antlr.v4.parse with parameters of type Tuple2Modifier and TypeMethodDescriptionstatic AttributeFor 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 Tuple2 -
Uses of Tuple2 in org.antlr.v4.runtime
Fields in org.antlr.v4.runtime declared as Tuple2Modifier and TypeFieldDescriptionprotected Tuple2<? extends TokenSource,CharStream> Lexer._tokenFactorySourcePairprotected static final Tuple2<TokenSource,CharStream> CommonToken.EMPTY_SOURCEAn emptyTuple2which is used as the default value ofCommonToken.sourcefor tokens that do not have a source.protected Tuple2<? extends TokenSource,CharStream> CommonToken.sourceThis is the backing field forCommonToken.getTokenSource()andCommonToken.getInputStream().Fields in org.antlr.v4.runtime with type parameters of type Tuple2Modifier and TypeFieldDescriptionprotected final Deque<Tuple2<ParserRuleContext,Integer>> ParserInterpreter._parentContextStackThis 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 Tuple2Modifier and TypeMethodDescriptionCommonTokenFactory.create(Tuple2<? extends TokenSource, CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine) TokenFactory.create(Tuple2<? extends 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 Tuple2ModifierConstructorDescriptionCommonToken(Tuple2<? extends TokenSource, CharStream> source, int type, int channel, int start, int stop) CommonToken(Tuple2<? extends TokenSource, CharStream> source, int type, int channel, int start, int stop, int line, int charPositionInLine) Constructs a token with start coordinates already known to the caller. -
Uses of Tuple2 in org.antlr.v4.runtime.atn
Methods in org.antlr.v4.runtime.atn that return Tuple2Modifier and TypeMethodDescriptionprotected Tuple2<DFAState,ParserRuleContext> ParserATNSimulator.computeTargetState(DFA dfa, DFAState s, ParserRuleContext remainingGlobalContext, int t, boolean useContext, PredictionContextCache contextCache) Compute a target state for an edge in the DFA, and attempt to add the computed state and corresponding edge to the DFA.protected Tuple2<DFAState,ParserRuleContext> ProfilingATNSimulator.computeTargetState(DFA dfa, DFAState s, ParserRuleContext remainingGlobalContext, int t, boolean useContext, PredictionContextCache contextCache) (package private) Tuple2<DFAState,ParserRuleContext> ReachComputation.computeTargetState(DFA dfa, DFAState s, ParserRuleContext remainingGlobalContext, int t, boolean useContext, PredictionContextCache contextCache) Compute a target state for an edge in the DFA, and attempt to add the computed state and corresponding edge to the DFA.private Tuple2<DFAState,ParserRuleContext> ReachComputation.finishTargetEdge(DFA dfa, DFAState s, int t, IntegerList contextElements, ATNConfigSet edgeConfigs, ParserRuleContext remainingGlobalContext, PredictionContextCache contextCache) Install a DFA edge for the computed config set, orATNSimulator.ERRORif empty. -
Uses of Tuple2 in org.antlr.v4.runtime.misc
Methods in org.antlr.v4.runtime.misc that return Tuple2Modifier and TypeMethodDescriptionstatic <T1,T2> Tuple2<T1, T2> Tuple.create(T1 item1, T2 item2) private Tuple2<AnnotationMirror,AnnotationValue> RuleDependencyProcessor.findRuleDependencyProperty(Tuple2<RuleDependency, Element> dependency, RuleDependencyProcessor.RuleDependencyProperty property) Methods in org.antlr.v4.runtime.misc that return types with arguments of type Tuple2Modifier and TypeMethodDescriptionstatic List<Tuple2<RuleDependency,AnnotatedElement>> RuleDependencyChecker.getDependencies(Class<?> clazz) static List<Tuple2<RuleDependency,Element>> RuleDependencyProcessor.getDependencies(RoundEnvironment roundEnv) MultiMap.getPairs()Methods in org.antlr.v4.runtime.misc with parameters of type Tuple2Modifier and TypeMethodDescriptionprivate intRuleDependencyProcessor.checkDependencyVersion(Tuple2<RuleDependency, Element> dependency, String[] ruleNames, int[] ruleVersions, int relatedRule, String relation) private AnnotationValueRuleDependencyProcessor.findRuleDependencyProperty(Tuple2<RuleDependency, Element> dependency, AnnotationMirror annotationMirror, RuleDependencyProcessor.RuleDependencyProperty property) private Tuple2<AnnotationMirror,AnnotationValue> RuleDependencyProcessor.findRuleDependencyProperty(Tuple2<RuleDependency, Element> dependency, RuleDependencyProcessor.RuleDependencyProperty property) private voidRuleDependencyProcessor.reportUnimplementedDependents(Tuple2<RuleDependency, Element> dependency, EnumSet<Dependents> dependents) Method parameters in org.antlr.v4.runtime.misc with type arguments of type Tuple2Modifier and TypeMethodDescriptionprivate static voidRuleDependencyChecker.checkDependencies(List<Tuple2<RuleDependency, AnnotatedElement>> dependencies, Class<? extends Recognizer<?, ?>> recognizerClass) private voidRuleDependencyProcessor.checkDependencies(List<Tuple2<RuleDependency, Element>> dependencies, TypeMirror recognizerType) private static voidRuleDependencyChecker.getElementDependencies(AnnotatedElement annotatedElement, List<Tuple2<RuleDependency, AnnotatedElement>> result) -
Uses of Tuple2 in org.antlr.v4.tool
Fields in org.antlr.v4.tool with type parameters of type Tuple2Modifier and TypeFieldDescriptionGrammar.AltLabelVisitor.labeledAlternativesLeftRecursiveRule.leftRecursiveRuleRefLabelsDid 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 Tuple2Modifier and TypeMethodDescriptionLeftRecursiveRule.getAltLabels()Get -> labels from those alts we deleted for left-recursive rules.Rule.getAltLabels()Get#labels.Grammar.AltLabelVisitor.getLabeledAlternatives()Grammar.getLabeledAlternatives(RuleAST ast) static List<Tuple2<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 Tuple2Modifier and TypeMethodDescriptionprotected static booleanGrammar.defAlias(GrammarAST r, String pattern, org.antlr.runtime.tree.TreeWizard wiz, List<Tuple2<GrammarAST, GrammarAST>> lexerRuleToStringLiteral)