Package org.antlr.v4.runtime
Class CodePointBuffer.Builder
java.lang.Object
org.antlr.v4.runtime.CodePointBuffer.Builder
- Enclosing class:
CodePointBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteBuffer
private CharBuffer
private IntBuffer
private int
private CodePointBuffer.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
append
(CharBuffer utf16In) private void
appendArray
(CharBuffer utf16In) private void
appendArrayByte
(CharBuffer utf16In) private void
appendArrayChar
(CharBuffer utf16In) private void
appendArrayInt
(CharBuffer utf16In) build()
private void
byteToCharBuffer
(int toAppend) private void
byteToIntBuffer
(int toAppend) private void
charToIntBuffer
(int toAppend) void
ensureRemaining
(int remainingNeeded) (package private) ByteBuffer
(package private) CharBuffer
(package private) IntBuffer
(package private) CodePointBuffer.Type
getType()
private static int
roundUpToNextPowerOfTwo
(int i)
-
Field Details
-
type
-
byteBuffer
-
charBuffer
-
intBuffer
-
prevHighSurrogate
private int prevHighSurrogate
-
-
Constructor Details
-
Builder
private Builder(int initialBufferSize)
-
-
Method Details
-
getType
CodePointBuffer.Type getType() -
getByteBuffer
ByteBuffer getByteBuffer() -
getCharBuffer
CharBuffer getCharBuffer() -
getIntBuffer
IntBuffer getIntBuffer() -
build
-
roundUpToNextPowerOfTwo
private static int roundUpToNextPowerOfTwo(int i) -
ensureRemaining
public void ensureRemaining(int remainingNeeded) -
append
-
appendArray
-
appendArrayByte
-
appendArrayChar
-
appendArrayInt
-
byteToCharBuffer
private void byteToCharBuffer(int toAppend) -
byteToIntBuffer
private void byteToIntBuffer(int toAppend) -
charToIntBuffer
private void charToIntBuffer(int toAppend)
-