Package org.antlr.v4.runtime.atn
Class CodePointTransitions
- java.lang.Object
-
- org.antlr.v4.runtime.atn.CodePointTransitions
-
public abstract class CodePointTransitions extends Object
Utility class to createAtomTransition
,RangeTransition
, andSetTransition
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 Summary
Constructors Constructor Description CodePointTransitions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Transition
createWithCodePoint(ATNState target, int codePoint)
Return newAtomTransition
static Transition
createWithCodePointRange(ATNState target, int codePointFrom, int codePointTo)
Return newAtomTransition
if range represents one atom elseSetTransition
.
-
-
-
Method Detail
-
createWithCodePoint
public static Transition createWithCodePoint(ATNState target, int codePoint)
Return newAtomTransition
-
createWithCodePointRange
public static Transition createWithCodePointRange(ATNState target, int codePointFrom, int codePointTo)
Return newAtomTransition
if range represents one atom elseSetTransition
.
-
-