public abstract class CodePointTransitions extends Object
AtomTransition, RangeTransition,
and SetTransition appropriately based on the range of the input.
Previously, we distinguished between atom and range transitions for
Unicode code points <= U+FFFF and those above. We used a set
transition for a Unicode code point > U+FFFF. Now that we can serialize
32-bit int/chars in the ATN serialization, this is no longer necessary.| Constructor and Description |
|---|
CodePointTransitions() |
| Modifier and Type | Method and Description |
|---|---|
static Transition |
createWithCodePoint(ATNState target,
int codePoint)
Return new
AtomTransition |
static Transition |
createWithCodePointRange(ATNState target,
int codePointFrom,
int codePointTo)
Return new
AtomTransition if range represents one atom else SetTransition. |
public static Transition createWithCodePoint(ATNState target, int codePoint)
AtomTransitionpublic static Transition createWithCodePointRange(ATNState target, int codePointFrom, int codePointTo)
AtomTransition if range represents one atom else SetTransition.