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 ByteBufferprivate CharBufferprivate IntBufferprivate intprivate CodePointBuffer.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(CharBuffer utf16In) private voidappendArray(CharBuffer utf16In) private voidappendArrayByte(CharBuffer utf16In) private voidappendArrayChar(CharBuffer utf16In) private voidappendArrayInt(CharBuffer utf16In) build()private voidbyteToCharBuffer(int toAppend) private voidbyteToIntBuffer(int toAppend) private voidcharToIntBuffer(int toAppend) voidensureRemaining(int remainingNeeded) (package private) ByteBuffer(package private) CharBuffer(package private) IntBuffer(package private) CodePointBuffer.TypegetType()private static introundUpToNextPowerOfTwo(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)
-