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 classCodePointBuffer.Builderstatic classCodePointBuffer.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CodePointBuffer.Builderbuilder(int initialBufferSize)intget(int offset)intposition()voidposition(int newPosition)intremaining()static CodePointBufferwithBytes(ByteBuffer byteBuffer)static CodePointBufferwithChars(CharBuffer charBuffer)static CodePointBufferwithInts(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)
-
-