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