Class CodePointTransitions
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.atn.CodePointTransitions
Utility class to create
AtomTransition, RangeTransition,
and SetTransition appropriately based on the range of the input.
Previously, we distinguished between atom and range transitions for
Unicode code points invalid input: '<'= 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic TransitioncreateWithCodePoint(ATNState target, int codePoint) Return newAtomTransitionstatic TransitioncreateWithCodePointRange(ATNState target, int codePointFrom, int codePointTo) Return newAtomTransitionif range represents one atom elseSetTransition.
-
Constructor Details
-
CodePointTransitions
public CodePointTransitions()
-
-
Method Details
-
createWithCodePoint
Return newAtomTransition -
createWithCodePointRange
public static Transition createWithCodePointRange(ATNState target, int codePointFrom, int codePointTo) Return newAtomTransitionif range represents one atom elseSetTransition.
-