Package org.antlr.v4.runtime
Class CodePointBuffer
- java.lang.Object
-
- org.antlr.v4.runtime.CodePointBuffer
-
public class CodePointBuffer extends Object
Wrapper forByteBuffer
/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 Classes Modifier and Type Class Description static class
CodePointBuffer.Builder
static class
CodePointBuffer.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CodePointBuffer.Builder
builder(int initialBufferSize)
int
get(int offset)
int
position()
void
position(int newPosition)
int
remaining()
static CodePointBuffer
withBytes(ByteBuffer byteBuffer)
static CodePointBuffer
withChars(CharBuffer charBuffer)
static CodePointBuffer
withInts(IntBuffer intBuffer)
-
-
-
Method Detail
-
withBytes
public static CodePointBuffer withBytes(ByteBuffer byteBuffer)
-
withChars
public static CodePointBuffer withChars(CharBuffer charBuffer)
-
withInts
public static CodePointBuffer withInts(IntBuffer intBuffer)
-
position
public int position()
-
position
public void position(int newPosition)
-
remaining
public int remaining()
-
get
public int get(int offset)
-
builder
public static CodePointBuffer.Builder builder(int initialBufferSize)
-
-