Package org.antlr.v4.runtime
Class CodePointBuffer
java.lang.Object
org.antlr.v4.runtime.CodePointBuffer
Wrapper for
ByteBuffer
/ CharBuffer
/ IntBuffer
.
Because Java lacks generics on primitive types, these three types
do not share an interface, so we have to write one manually.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodePointBuffer.Builder
builder
(int initialBufferSize) int
get
(int offset) int
position()
void
position
(int newPosition) int
static CodePointBuffer
withBytes
(ByteBuffer byteBuffer) static CodePointBuffer
withChars
(CharBuffer charBuffer) static CodePointBuffer
-
Method Details
-
withBytes
-
withChars
-
withInts
-
position
public int position() -
position
public void position(int newPosition) -
remaining
public int remaining() -
get
public int get(int offset) -
builder
-