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

public abstract Class CodePointTransitions

extends Object
Class Inheritance
Imports
org.antlr.v4.runtime.misc.IntervalSet

Utility class to create AtomTransition, RangeTransition, and SetTransition appropriately based on the range of the input. To keep the serialized ATN size small, we only inline atom and range transitions for Unicode code points <= U+FFFF. Whenever we encounter a Unicode code point > U+FFFF, we represent that as a set transition (even if it is logically an atom or a range).

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

If codePoint is <= U+FFFF, returns a new AtomTransition.

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

If codePointFrom and codePointTo are both <= U+FFFF, returns a new RangeTransition.

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)

If codePoint is <= U+FFFF, returns a new AtomTransition. Otherwise, returns a new SetTransition.

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

If codePointFrom and codePointTo are both <= U+FFFF, returns a new RangeTransition. Otherwise, returns a new SetTransition.