| Package | Description |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.dfa | |
| org.antlr.v4.runtime.misc | |
| org.antlr.v4.runtime.tree.xpath | |
| org.antlr.v4.tool |
| Modifier and Type | Class and Description |
|---|---|
class |
VocabularyImpl
This class provides a default implementation of the
Vocabulary
interface. |
| Modifier and Type | Field and Description |
|---|---|
private Vocabulary |
LexerInterpreter.vocabulary |
private Vocabulary |
ParserInterpreter.vocabulary |
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Map<Vocabulary,java.util.Map<java.lang.String,java.lang.Integer>> |
Recognizer.tokenTypeMapCache |
| Modifier and Type | Method and Description |
|---|---|
static Vocabulary |
VocabularyImpl.fromTokenNames(java.lang.String[] tokenNames)
Returns a
VocabularyImpl instance from the specified set of token
names. |
Vocabulary |
LexerInterpreter.getVocabulary() |
Vocabulary |
ParserInterpreter.getVocabulary() |
Vocabulary |
Recognizer.getVocabulary()
Get the vocabulary used by the recognizer.
|
| Constructor and Description |
|---|
LexerInterpreter(java.lang.String grammarFileName,
Vocabulary vocabulary,
java.util.Collection<java.lang.String> ruleNames,
java.util.Collection<java.lang.String> modeNames,
ATN atn,
CharStream input)
Deprecated.
|
LexerInterpreter(java.lang.String grammarFileName,
Vocabulary vocabulary,
java.util.Collection<java.lang.String> ruleNames,
java.util.Collection<java.lang.String> channelNames,
java.util.Collection<java.lang.String> modeNames,
ATN atn,
CharStream input) |
ParserInterpreter(java.lang.String grammarFileName,
Vocabulary vocabulary,
java.util.Collection<java.lang.String> ruleNames,
ATN atn,
TokenStream input) |
| Modifier and Type | Field and Description |
|---|---|
private Vocabulary |
DFASerializer.vocabulary |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
DFA.toString(Vocabulary vocabulary) |
| Constructor and Description |
|---|
DFASerializer(DFA dfa,
Vocabulary vocabulary) |
| Modifier and Type | Field and Description |
|---|---|
(package private) Vocabulary |
InterpreterDataReader.InterpreterData.vocabulary |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
IntervalSet.elementName(Vocabulary vocabulary,
int a) |
java.lang.String |
IntervalSet.toString(Vocabulary vocabulary) |
| Modifier and Type | Field and Description |
|---|---|
static Vocabulary |
XPathLexer.VOCABULARY |
| Modifier and Type | Method and Description |
|---|---|
Vocabulary |
XPathLexer.getVocabulary() |
| Modifier and Type | Method and Description |
|---|---|
Vocabulary |
Grammar.getVocabulary()
Gets a
Vocabulary instance describing the vocabulary used by the
grammar. |
| Constructor and Description |
|---|
GrammarParserInterpreter(Grammar g,
java.lang.String grammarFileName,
Vocabulary vocabulary,
java.util.Collection<java.lang.String> ruleNames,
ATN atn,
TokenStream input) |