| Modifier and Type | Field and Description |
|---|---|
| private final ConstantPoolBuilder | |
| private final ClassFileImpl | |
| pack-priv byte[] | |
| private static final JavaLangAccess | |
| private LabelContext | |
| private boolean | |
| private final int | |
| pack-priv int | |
| private final ClassEntry |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | BufWriterImpl(ConstantPoolBuilder constantPool, ClassFileImpl context, int initialSize, ClassEntry thisClass, int majorVersion)
|
| Modifier and Type | Method and Description |
|---|---|
| public RawBytecodeHelper. | |
| public boolean | canWriteDirect(ConstantPool other)
Implements java. Returns whether the provided constant pool is index-compatible with the constant pool of this buffer. |
| public ConstantPoolBuilder | constantPool()
Implements java. Returns the constant pool builder associated with this buffer. |
| public ClassFileImpl | |
| public void | |
| public int | |
| public int | |
| public int | |
| private void | |
| pack-priv static IllegalArgumentException | |
| pack-priv static byte[] | |
| public LabelContext | |
| public boolean | |
| public void | patchInt(int offset, int size, int value)
Implements java. Patches a previously written integer value. |
| public void | |
| public void | |
| public void | reserveSpace(int freeBytes)
Implements java. Ensures that the buffer has at least |
| public void | |
| public int | size()
Implements java. Returns the number of bytes that have been written to the buffer. |
| public int | Returns: the index, for later patchingnumber of bytes to skip bytes)Skip a few bytes in the output buffer. |
| public ClassEntry | |
| public void | writeBytes(byte[] arr)
Implements java. Writes the contents of a byte array to the buffer. |
| public void | |
| public void | writeBytes(byte[] arr, int start, int length)
Implements java. Writes a range of a byte array to the buffer. |
| public void | writeDouble(double x)
Implements java. Writes a double value, of 8 bytes, to the buffer. |
| public void | writeFloat(float x)
Implements java. Writes a float value, of 4 bytes, to the buffer. |
| public void | writeIndex(PoolEntry entry)
Implements java. Writes the index of the specified constant pool entry as a |
| public void | |
| public void | writeIndexOrZero(PoolEntry entry)
Implements java. Writes the index of the specified constant pool entry, or the value
|
| public void | writeInt(int x)
Implements java. Writes 4 bytes, or an int, to the buffer. |
| public void | writeIntBytes(int intSize, long intValue)
Implements java. Writes a multibyte value to the buffer. |
| public void | |
| public void | writeLong(long x)
Implements java. Writes 8 bytes, or a long, to the buffer. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | writeU2(int x)
Implements java. Writes 2 bytes, or a short, to the buffer. |
| public void | |
| public void | |
| public void | |
| pack-priv void |
| constantPool | back to summary |
|---|---|
| private final ConstantPoolBuilder constantPool | |
| context | back to summary |
|---|---|
| private final ClassFileImpl context | |
| elems | back to summary |
|---|---|
| pack-priv byte[] elems | |
| JLA | back to summary |
|---|---|
| private static final JavaLangAccess JLA | |
| labelContext | back to summary |
|---|---|
| private LabelContext labelContext | |
| labelsMatch | back to summary |
|---|---|
| private boolean labelsMatch | |
| majorVersion | back to summary |
|---|---|
| private final int majorVersion | |
| offset | back to summary |
|---|---|
| pack-priv int offset | |
| thisClass | back to summary |
|---|---|
| private final ClassEntry thisClass | |
| BufWriterImpl | back to summary |
|---|---|
| public BufWriterImpl(ConstantPoolBuilder constantPool, ClassFileImpl context) | |
| BufWriterImpl | back to summary |
|---|---|
| public BufWriterImpl(ConstantPoolBuilder constantPool, ClassFileImpl context, int initialSize) | |
| BufWriterImpl | back to summary |
|---|---|
| public BufWriterImpl(ConstantPoolBuilder constantPool, ClassFileImpl context, int initialSize, ClassEntry thisClass, int majorVersion) | |
| bytecodeView | back to summary |
|---|---|
| public RawBytecodeHelper. | |
| canWriteDirect | back to summary |
|---|---|
| public boolean canWriteDirect(ConstantPool other) Implements java. Doc from java. Returns whether the provided constant pool is index-compatible with the constant pool of this buffer.
This is a shortcut for
| |
| constantPool | back to summary |
|---|---|
| public ConstantPoolBuilder constantPool() Implements java. Doc from java. Returns the constant pool builder associated with this buffer.
| |
| context | back to summary |
|---|---|
| public ClassFileImpl context() | |
| copyTo | back to summary |
|---|---|
| public void copyTo(byte[] array, int bufferOffset) | |
| cpIndex | back to summary |
|---|---|
| public int cpIndex(PoolEntry entry) | |
| cpIndexOrZero | back to summary |
|---|---|
| public int cpIndexOrZero(PoolEntry entry) | |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() | |
| grow | back to summary |
|---|---|
| private void grow(int minCapacity) | |
| invalidIndex | back to summary |
|---|---|
| pack-priv static IllegalArgumentException invalidIndex(int idx, PoolEntry entry) | |
| join | back to summary |
|---|---|
| pack-priv static byte[] join(BufWriterImpl head, BufWriterImpl tail) Join head and tail into an exact-size buffer | |
| labelContext | back to summary |
|---|---|
| public LabelContext labelContext() | |
| labelsMatch | back to summary |
|---|---|
| public boolean labelsMatch(LabelContext lc) | |
| patchInt | back to summary |
|---|---|
| public void patchInt(int offset, int size, int value) Implements java. Doc from java. Patches a previously written integer value.
| |
| patchInt | back to summary |
|---|---|
| public void patchInt(int offset, int x) | |
| patchU2 | back to summary |
|---|---|
| public void patchU2(int offset, int x) | |
| reserveSpace | back to summary |
|---|---|
| public void reserveSpace(int freeBytes) Implements java. Doc from java. Ensures that the buffer has at least The writing result is the same without calls to this method, but the writing process may be slower.
| |
| setLabelContext | back to summary |
|---|---|
| public void setLabelContext(LabelContext labelContext, boolean labelsMatch) | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of bytes that have been written to the buffer.
| |
| skip | back to summary |
|---|---|
| public int skip(int bytes) Skip a few bytes in the output buffer. The skipped area has undefined value.
| |
| thisClass | back to summary |
|---|---|
| public ClassEntry thisClass() | |
| writeBytes | back to summary |
|---|---|
| public void writeBytes(byte[] arr) Implements java. Doc from java. Writes the contents of a byte array to the buffer.
| |
| writeBytes | back to summary |
|---|---|
| public void writeBytes(BufWriterImpl other) | |
| writeBytes | back to summary |
|---|---|
| public void writeBytes(byte[] arr, int start, int length) Implements java. Doc from java. Writes a range of a byte array to the buffer.
| |
| writeDouble | back to summary |
|---|---|
| public void writeDouble(double x) Implements java. Doc from java. Writes a double value, of 8 bytes, to the buffer.
In the conversions, all NaN values of the
| |
| writeFloat | back to summary |
|---|---|
| public void writeFloat(float x) Implements java. Doc from java. Writes a float value, of 4 bytes, to the buffer.
In the conversions, all NaN values of the
| |
| writeIndex | back to summary |
|---|---|
| public void writeIndex(PoolEntry entry) Implements java. Doc from java. Writes the index of the specified constant pool entry as a
| |
| writeIndex | back to summary |
|---|---|
| public void writeIndex(int bytecode, PoolEntry entry) | |
| writeIndexOrZero | back to summary |
|---|---|
| public void writeIndexOrZero(PoolEntry entry) Implements java. Doc from java. Writes the index of the specified constant pool entry, or the value
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(int x) Implements java. Doc from java. Writes 4 bytes, or an int, to the buffer.
| |
| writeIntBytes | back to summary |
|---|---|
| public void writeIntBytes(int intSize, long intValue) Implements java. Doc from java. Writes a multibyte value to the buffer.
| |
| writeIntInt | back to summary |
|---|---|
| public void writeIntInt(int x1, int x2) | |
| writeLong | back to summary |
|---|---|
| public void writeLong(long x) Implements java. Doc from java. Writes 8 bytes, or a long, to the buffer.
| |
| writeU1 | back to summary |
|---|---|
| public void writeU1(int x) Implements java. Doc from java. Writes a byte to the buffer.
| |
| writeU1U1 | back to summary |
|---|---|
public void writeU1U1(int x1, int x2)
| |
| writeU1U1U1 | back to summary |
|---|---|
| public void writeU1U1U1(int x1, int x2, int x3) | |
| writeU1U1U2 | back to summary |
|---|---|
| public void writeU1U1U2(int x1, int x2, int x3) | |
| writeU1U2 | back to summary |
|---|---|
| public void writeU1U2(int u1, int u2) | |
| writeU1U2U2 | back to summary |
|---|---|
| public void writeU1U2U2(int x1, int x2, int x3) | |
| writeU2 | back to summary |
|---|---|
| public void writeU2(int x) Implements java. Doc from java. Writes 2 bytes, or a short, to the buffer.
| |
| writeU2U1 | back to summary |
|---|---|
| public void writeU2U1(int x1, int x2) | |
| writeU2U2 | back to summary |
|---|---|
| public void writeU2U2(int x1, int x2) | |
| writeU2U2U2 | back to summary |
|---|---|
| public void writeU2U2U2(int x1, int x2, int x3) | |
| writeUtfEntry | back to summary |
|---|---|
pack-priv void writeUtfEntry(String str)
| |