Top Description Constructors Methods
org.antlr.v4.runtime.atn

public abstract Class CodePointTransitions

extends Object
Class Inheritance

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 <= 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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Transition
createWithCodePoint(ATNState target, int codePoint)

Return new AtomTransition

public static Transition
createWithCodePointRange(ATNState target, int codePointFrom, int codePointTo)

Return new AtomTransition if range represents one atom else SetTransition.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CodePointTransitionsback to summary
public CodePointTransitions()

Method Detail

createWithCodePointback to summary
public static Transition createWithCodePoint(ATNState target, int codePoint)

Return new AtomTransition

createWithCodePointRangeback to summary
public static Transition createWithCodePointRange(ATNState target, int codePointFrom, int codePointTo)

Return new AtomTransition if range represents one atom else SetTransition.