| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected Map | actionToIndexMap
Maps from a |
| public STGroup | |
| public static final Map | COMMON_CONSTANTS
Provides a map of names of predefined constants which are likely to appear as the argument for lexer commands. |
| protected Map | indexToActionMap
Maps from an action index to a |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| actionToIndexMap | back to summary |
|---|---|
| protected Map<LexerAction, Integer> actionToIndexMap Maps from a | |
| codegenTemplates | back to summary |
|---|---|
| public STGroup codegenTemplates | |
| COMMON_CONSTANTS | back to summary |
|---|---|
| public static final Map<String, Integer> COMMON_CONSTANTS Provides a map of names of predefined constants which are likely to
appear as the argument for lexer commands. These names would be resolved
by the Java compiler for lexer commands that are translated to embedded
actions, but are required during code generation for creating
| |
| indexToActionMap | back to summary |
|---|---|
| protected Map<Integer, LexerAction> indexToActionMap Maps from an action index to a | |
| ruleCommands | back to summary |
|---|---|
| private final List<String> ruleCommands | |
| LexerATNFactory | back to summary |
|---|---|
| public LexerATNFactory(LexerGrammar g) | |
| LexerATNFactory | back to summary |
|---|---|
| public LexerATNFactory(LexerGrammar g, CodeGenerator codeGenerator) | |
| action | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org. Doc from org. Build what amounts to an epsilon transition with an action.
The action goes into ATN though it is ignored during prediction
if
| |
| action | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org.
| |
| action | back to summary |
|---|---|
| protected ATNFactory. | |
| applyPrevState | back to summary |
|---|---|
| private void applyPrevState(GrammarAST charSetAST, IntervalSet set, LexerATNFactory. | |
| applyPrevStateAndMoveToCodePoint | back to summary |
|---|---|
| private LexerATNFactory. | |
| applyPrevStateAndMoveToProperty | back to summary |
|---|---|
| private LexerATNFactory. | |
| charSetLiteral | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org. [Aa\t ሴa-z\]\p{Letter}\-] char sets
| |
| checkCharAndAddToSet | back to summary |
|---|---|
| private void checkCharAndAddToSet(GrammarAST ast, IntervalSet set, int c) | |
| checkCommands | back to summary |
|---|---|
| private void checkCommands(String command, Token commandToken) | |
| checkRange | back to summary |
|---|---|
| protected boolean checkRange(GrammarAST leftNode, GrammarAST rightNode, int leftValue, int rightValue) | |
| checkRangeAndAddToSet | back to summary |
|---|---|
| private void checkRangeAndAddToSet(GrammarAST mainAst, IntervalSet set, int a, int b) | |
| checkRangeAndAddToSet | back to summary |
|---|---|
| private CharactersDataCheckStatus checkRangeAndAddToSet(GrammarAST rootAst, GrammarAST ast, IntervalSet set, int a, int b, boolean caseInsensitive, CharactersDataCheckStatus previousStatus) | |
| createATN | back to summary |
|---|---|
| public ATN createATN() Overrides org. Implements org.
| |
| createLexerAction | back to summary |
|---|---|
| private LexerAction createLexerAction(GrammarAST ID, GrammarAST arg) | |
| createTransition | back to summary |
|---|---|
| private Transition createTransition(ATNState target, int from, int to, CommonTree tree) | |
| getChannelConstantValue | back to summary |
|---|---|
| private Integer getChannelConstantValue(String channelName, Token token) | |
| getCommonConstants | back to summary |
|---|---|
| public static Set | |
| getLexerActionIndex | back to summary |
|---|---|
| protected int getLexerActionIndex(LexerAction lexerAction) | |
| getModeConstantValue | back to summary |
|---|---|
| private Integer getModeConstantValue(String modeName, Token token) | |
| getSetFromCharSetLiteral | back to summary |
|---|---|
| public IntervalSet getSetFromCharSetLiteral(GrammarAST charSetAST) | |
| getTokenConstantValue | back to summary |
|---|---|
| private Integer getTokenConstantValue(String tokenName, Token token) | |
| lexerAltCommands | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org.
| |
| lexerCallCommand | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org.
| |
| lexerCallCommandOrCommand | back to summary |
|---|---|
| private ATNFactory. | |
| lexerCommand | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org.
| |
| range | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org. Doc from org. Not valid for non-lexers.
| |
| rule | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org.
| |
| set | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org. Doc from org. From set build single edge graph
| |
| stringLiteral | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org. For a lexer, a string is a sequence of char to match. That is, "fog" is treated as 'f' 'o' 'g' not as a single transition in the DFA. Machine== o-'f'->o-'o'->o-'g'->o and has n+1 states for n characters. if "caseInsensitive" option is enabled, "fog" will be treated as o-('f'|'F') -> o-('o'|'O') -> o-('g'|'G')
| |
| tokenRef | back to summary |
|---|---|
| public ATNFactory. Overrides org. Implements org. Doc from org. From label
| |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final LexerATNFactory. | |
| public final boolean | |
| public final LexerATNFactory. | |
| public static final LexerATNFactory. | |
| public final int | |
| public final IntervalSet |
| Access | Constructor and Description |
|---|---|
| public | CharSetParseState(LexerATNFactory.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | |
| public String |
| ERROR | back to summary |
|---|---|
| public static final LexerATNFactory. | |
| inRange | back to summary |
|---|---|
| public final boolean inRange | |
| mode | back to summary |
|---|---|
| public final LexerATNFactory. | |
| NONE | back to summary |
|---|---|
| public static final LexerATNFactory. | |
| prevCodePoint | back to summary |
|---|---|
| public final int prevCodePoint | |
| prevProperty | back to summary |
|---|---|
| public final IntervalSet prevProperty | |
| CharSetParseState | back to summary |
|---|---|
| public CharSetParseState(LexerATNFactory. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final LexerATNFactory. | |
| public static final LexerATNFactory. | |
| public static final LexerATNFactory. | |
| public static final LexerATNFactory. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LexerATNFactory. | |
| public static LexerATNFactory. |
| ERROR | back to summary |
|---|---|
| public static final LexerATNFactory. | |
| NONE | back to summary |
|---|---|
| public static final LexerATNFactory. | |
| PREV_CODE_POINT | back to summary |
|---|---|
| public static final LexerATNFactory. | |
| PREV_PROPERTY | back to summary |
|---|---|
| public static final LexerATNFactory. | |
| Mode | back to summary |
|---|---|
| private Mode() | |
| valueOf | back to summary |
|---|---|
| public static LexerATNFactory. | |
| values | back to summary |
|---|---|
| public static LexerATNFactory. | |