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.ByteBufferbyteBufferprivate java.nio.CharBuffercharBufferprivate java.nio.IntBufferintBufferprivate intprevHighSurrogateprivate CodePointBuffer.Typetype
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilder(int initialBufferSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(java.nio.CharBuffer utf16In)private voidappendArray(java.nio.CharBuffer utf16In)private voidappendArrayByte(java.nio.CharBuffer utf16In)private voidappendArrayChar(java.nio.CharBuffer utf16In)private voidappendArrayInt(java.nio.CharBuffer utf16In)CodePointBufferbuild()private voidbyteToCharBuffer(int toAppend)private voidbyteToIntBuffer(int toAppend)private voidcharToIntBuffer(int toAppend)voidensureRemaining(int remainingNeeded)(package private) java.nio.ByteBuffergetByteBuffer()(package private) java.nio.CharBuffergetCharBuffer()(package private) java.nio.IntBuffergetIntBuffer()(package private) CodePointBuffer.TypegetType()private static introundUpToNextPowerOfTwo(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)
-
-