| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| public ATN | |
| private List | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | appendSets(StringBuilder buf, char[] data, int p, int nsets, int setIndexOffset, ATNDeserializer.
|
| public String | |
| public static String | |
| public static IntegerList | |
| public static char[] | |
| public static String | getSerializedAsString(ATN atn, List<String> ruleNames)
Used by Java target to encode short/int array as chars in string. |
| public String | |
| public IntegerList | serialize()
Serialize state descriptors, edge descriptors, and decision→state map into list of ints: grammar-type, (ANTLRParser.LEXER, ...) max token type, num states, state-0-type ruleIndex, state-1-type ruleIndex, ... |
| private void | |
| private void | |
| private static void | serializeSets(IntegerList data, Collection<IntervalSet> sets, ATNSerializer.
|
| private void |
| atn | back to summary |
|---|---|
| public ATN atn | |
| ruleNames | back to summary |
|---|---|
| private List<String> ruleNames | |
| tokenNames | back to summary |
|---|---|
| private List<String> tokenNames | |
| ATNSerializer | back to summary |
|---|---|
| public ATNSerializer(ATN atn, List<String> ruleNames) | |
| ATNSerializer | back to summary |
|---|---|
| public ATNSerializer(ATN atn, List<String> ruleNames, List<String> tokenNames) | |
| appendSets | back to summary |
|---|---|
| private int appendSets(StringBuilder buf, char[] data, int p, int nsets, int setIndexOffset, ATNDeserializer. | |
| decode | back to summary |
|---|---|
| public String decode(char[] data) | |
| getDecoded | back to summary |
|---|---|
| public static String getDecoded(ATN atn, List<String> ruleNames, List<String> tokenNames) | |
| getSerialized | back to summary |
|---|---|
| public static IntegerList getSerialized(ATN atn, List<String> ruleNames) | |
| getSerializedAsChars | back to summary |
|---|---|
| public static char[] getSerializedAsChars(ATN atn, List<String> ruleNames) | |
| getSerializedAsString | back to summary |
|---|---|
| public static String getSerializedAsString(ATN atn, List<String> ruleNames) Used by Java target to encode short/int array as chars in string. | |
| getTokenName | back to summary |
|---|---|
| public String getTokenName(int t) | |
| serialize | back to summary |
|---|---|
| public IntegerList serialize() Serialize state descriptors, edge descriptors, and decision→state map into list of ints: grammar-type, (ANTLRParser.LEXER, ...) max token type, num states, state-0-type ruleIndex, state-1-type ruleIndex, ... state-i-type ruleIndex optional-arg ... num rules, rule-1-start-state rule-1-args, rule-2-start-state rule-2-args, ... (args are token type,actionIndex in lexer else 0,0) num modes, mode-0-start-state, mode-1-start-state, ... (parser has 0 modes) num unicode-bmp-sets bmp-set-0-interval-count intervals, bmp-set-1-interval-count intervals, ... num unicode-smp-sets smp-set-0-interval-count intervals, smp-set-1-interval-count intervals, ... num total edges, src, trg, edge-type, edge arg1, optional edge arg2 (present always), ... num decisions, decision-0-start-state, decision-1-start-state, ... Convenient to pack into unsigned shorts to make as Java string. | |
| serializeInt | back to summary |
|---|---|
| private void serializeInt(IntegerList data, int value) | |
| serializeLong | back to summary |
|---|---|
| private void serializeLong(IntegerList data, long value) | |
| serializeSets | back to summary |
|---|---|
| private static void serializeSets(IntegerList data, Collection<IntervalSet> sets, ATNSerializer. | |
| serializeUUID | back to summary |
|---|---|
| private void serializeUUID(IntegerList data, UUID uuid) | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| serializeCodePoint | back to summary |
|---|---|
| public void serializeCodePoint(IntegerList data, int cp) | |