| Modifier and Type | Field and Description |
|---|---|
| private final ATNDeserializationOptions | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| public static int[] | |
| public static int[] | decodeIntsEncodedAs16BitWords(char[] data16, boolean trimToSize)
Convert a list of chars (16 uint) that represent a serialized and compressed list of ints for an ATN. |
| public ATN | |
| public ATN | |
| private int | |
| protected Transition | edgeFactory(ATN atn, int type, int src, int trg, int arg1, int arg2, int arg3, List<IntervalSet> sets)
|
| public static IntegerList | encodeIntsWith16BitWords(IntegerList data)
Given a list of integers representing a serialized ATN, encode values too large to fit into 15 bits as two 16bit values. |
| protected LexerAction | |
| protected void | markPrecedenceDecisions(ATN
The ATN. atn)Analyze the |
| protected ATNState | |
| protected static int | |
| protected static int | |
| protected static int | |
| protected void |
| deserializationOptions | back to summary |
|---|---|
| private final ATNDeserializationOptions deserializationOptions | |
| SERIALIZED_VERSION | back to summary |
|---|---|
| public static final int SERIALIZED_VERSION | |
| ATNDeserializer | back to summary |
|---|---|
| public ATNDeserializer() | |
| ATNDeserializer | back to summary |
|---|---|
| public ATNDeserializer(ATNDeserializationOptions deserializationOptions) | |
| checkCondition | back to summary |
|---|---|
| protected void checkCondition(boolean condition) | |
| checkCondition | back to summary |
|---|---|
| protected void checkCondition(boolean condition, String message) | |
| decodeIntsEncodedAs16BitWords | back to summary |
|---|---|
| public static int[] decodeIntsEncodedAs16BitWords(char[] data16) | |
| decodeIntsEncodedAs16BitWords | back to summary |
|---|---|
| public static int[] decodeIntsEncodedAs16BitWords(char[] data16, boolean trimToSize) Convert a list of chars (16 uint) that represent a serialized and compressed list of ints for an ATN.
This method pairs with | |
| deserialize | back to summary |
|---|---|
| public ATN deserialize(char[] data) | |
| deserialize | back to summary |
|---|---|
| public ATN deserialize(int[] data) | |
| deserializeSets | back to summary |
|---|---|
| private int deserializeSets(int[] data, int p, List<IntervalSet> sets) | |
| edgeFactory | back to summary |
|---|---|
| protected Transition edgeFactory(ATN atn, int type, int src, int trg, int arg1, int arg2, int arg3, List<IntervalSet> sets) | |
| encodeIntsWith16BitWords | back to summary |
|---|---|
| public static IntegerList encodeIntsWith16BitWords(IntegerList data) Given a list of integers representing a serialized ATN, encode values too large to fit into 15 bits
as two 16bit values. We use the high bit (0x8000_0000) to indicate values requiring two 16 bit words.
If the high bit is set, we grab the next value and combine them to get a 31-bit value. The possible
input int values are [-1,0x7FFF_FFFF].
| compression/encoding | uint16 count | type |
| -------------------------------------------- | ------------ | --------------- |
| 0xxxxxxx xxxxxxxx | 1 | uint (15 bit) |
| 1xxxxxxx xxxxxxxx yyyyyyyy yyyyyyyy | 2 | uint (16+ bits) |
| 11111111 11111111 11111111 11111111 | 2 | int value -1 |
This is only used (other than for testing) by | |
| lexerActionFactory | back to summary |
|---|---|
| protected LexerAction lexerActionFactory(LexerActionType type, int data1, int data2) | |
| markPrecedenceDecisions | back to summary |
|---|---|
| protected void markPrecedenceDecisions(ATN atn) Analyze the
| |
| stateFactory | back to summary |
|---|---|
| protected ATNState stateFactory(int type, int ruleIndex) | |
| toInt | back to summary |
|---|---|
| protected static int toInt(char c) | |
| toInt32 | back to summary |
|---|---|
| protected static int toInt32(char[] data, int offset) | |
| toInt32 | back to summary |
|---|---|
| protected static int toInt32(int[] data, int offset) | |
| verifyATN | back to summary |
|---|---|
| protected void verifyATN(ATN atn) | |