| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | Util.
A generic interface for objects to write to a buf writer. |
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv static final int | |
| pack-priv static final int[] | powers
The code below is as if:
int[] powers = new int[7 * SIGNIFICANT_OCTAL_DIGITS]; for (int i = 1, k = 31; i <= 7; i++, k *= 31) { int t = powers[powersIndex(i, 0)] = k; for (int j = 1; j < SIGNIFICANT_OCTAL_DIGITS; j++) { t *= t; t *= t; t *= t; powers[powersIndex(i, j)] = t; } } |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IllegalArgumentException | |
| public static Consumer | |
| public static Consumer | |
| public static char | |
| public static void | |
| public static int | |
| public static char | |
| public static int | descriptorStringHash(int length, int hash)
Returns the hash code of a class or interface L descriptor given the internal name. |
| public static void | |
| public static void | dumpMethod(SplitConstantPool cp, ClassDesc cls, String methodName, MethodTypeDesc methodDesc, int acc, RawBytecodeHelper.
|
| public static List | |
| public static ClassDesc | |
| public static int | |
| public static int | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static <T, U> List | |
| public static int | |
| public static MethodTypeDesc | |
| public static List | |
| public static IllegalArgumentException | |
| public static int | |
| public static int | |
| public static int[] | |
| public static int | |
| private static int | |
| pack-priv static int | |
| public static List | sanitizeParameterAnnotations(List<List<Annotation>> input)
Sanitizes an input nested list of parameter annotations. |
| public static <T> List | sanitizeU1List(List<T> input)
Sanitizes an input list to make it immutable, and verify its size can be represented with U1, throwing IAE otherwise. |
| public static <T> List | sanitizeU2List(Collection<T> input)
Sanitizes an input list to make it immutable, and verify its size can be represented with U2, throwing IAE otherwise. |
| public static int | |
| public static String | |
| public static ClassDesc | |
| public static String | |
| public static <T extends Attribute | |
| public static void | |
| pack-priv static void | |
| public static void | |
| public static boolean | |
| public static <T> Consumer |
| ATTRIBUTE_STABILITY_COUNT | back to summary |
|---|---|
| private static final int ATTRIBUTE_STABILITY_COUNT | |
| INVERSE_31 | back to summary |
|---|---|
| pack-priv static final int INVERSE_31 | |
| powers | back to summary |
|---|---|
| pack-priv static final int[] powers The code below is as if: int[] powers = new int[7 * SIGNIFICANT_OCTAL_DIGITS]; for (int i = 1, k = 31; i <= 7; i++, k *= 31) { int t = powers[powersIndex(i, 0)] = k; for (int j = 1; j < SIGNIFICANT_OCTAL_DIGITS; j++) { t *= t; t *= t; t *= t; powers[powersIndex(i, j)] = t; } } | |
| SIGNIFICANT_OCTAL_DIGITS | back to summary |
|---|---|
| pack-priv static final int SIGNIFICANT_OCTAL_DIGITS | |
| Util | back to summary |
|---|---|
| private Util() | |
| badOpcodeKindException | back to summary |
|---|---|
| public static IllegalArgumentException badOpcodeKindException(Opcode op, Opcode. | |
| buildingCode | back to summary |
|---|---|
| public static Consumer | |
| buildingFlags | back to summary |
|---|---|
| public static Consumer | |
| checkFlags | back to summary |
|---|---|
| public static char checkFlags(int mask) Ensures the given mask won't be truncated when written as an access flag | |
| checkKind | back to summary |
|---|---|
| public static void checkKind(Opcode op, Opcode. | |
| checkU1 | back to summary |
|---|---|
| public static int checkU1(int incoming, String valueName) Ensures the given value won't be truncated when written as a u1 | |
| checkU2 | back to summary |
|---|---|
| public static char checkU2(int incoming, String valueName) Ensures the given value won't be truncated when written as a u2 | |
| descriptorStringHash | back to summary |
|---|---|
| public static int descriptorStringHash(int length, int hash) Returns the hash code of a class or interface L descriptor given the internal name. | |
| dumpBytesHex | back to summary |
|---|---|
| public static void dumpBytesHex(Consumer<String> dump, byte[] bytes, int length) | |
| dumpMethod | back to summary |
|---|---|
| public static void dumpMethod(SplitConstantPool cp, ClassDesc cls, String methodName, MethodTypeDesc methodDesc, int acc, RawBytecodeHelper. | |
| entryList | back to summary |
|---|---|
| public static List | |
| fieldTypeSymbol | back to summary |
|---|---|
| public static ClassDesc fieldTypeSymbol(Utf8Entry utf8) | |
| flagsToBits | back to summary |
|---|---|
| public static int flagsToBits(AccessFlag. | |
| flagsToBits | back to summary |
|---|---|
| public static int flagsToBits(AccessFlag. | |
| has | back to summary |
|---|---|
| public static boolean has(AccessFlag. | |
| isAttributeAllowed | back to summary |
|---|---|
| public static boolean isAttributeAllowed(final Attribute<?> attr, final ClassFileImpl context) | |
| isDoubleSlot | back to summary |
|---|---|
| public static boolean isDoubleSlot(ClassDesc desc) | |
| mappedList | back to summary |
|---|---|
| public static <T, U> List | |
| maxLocals | back to summary |
|---|---|
| public static int maxLocals(int flags, MethodTypeDesc mDesc) | |
| methodTypeSymbol | back to summary |
|---|---|
| public static MethodTypeDesc methodTypeSymbol(Utf8Entry utf8) | |
| moduleEntryList | back to summary |
|---|---|
| public static List | |
| outOfRangeException | back to summary |
|---|---|
| public static IllegalArgumentException outOfRangeException(int value, String fieldName, String typeName) | |
| parameterSlots | back to summary |
|---|---|
| public static int parameterSlots(MethodTypeDesc mDesc) | |
| paramSlotSize | back to summary |
|---|---|
| public static int paramSlotSize(ClassDesc desc) | |
| parseParameterSlots | back to summary |
|---|---|
| public static int[] parseParameterSlots(int flags, MethodTypeDesc mDesc) | |
| pow31 | back to summary |
|---|---|
| public static int pow31(int k) | |
| powerOctal | back to summary |
|---|---|
| private static int powerOctal(int digit, int index) | |
| powersIndex | back to summary |
|---|---|
| pack-priv static int powersIndex(int digit, int index) | |
| sanitizeParameterAnnotations | back to summary |
|---|---|
| public static List Sanitizes an input nested list of parameter annotations. | |
| sanitizeU1List | back to summary |
|---|---|
| public static <T> List Sanitizes an input list to make it immutable, and verify its size can be represented with U1, throwing IAE otherwise. | |
| sanitizeU2List | back to summary |
|---|---|
| public static <T> List Sanitizes an input list to make it immutable, and verify its size can be represented with U2, throwing IAE otherwise. | |
| slotSize | back to summary |
|---|---|
| public static int slotSize(ClassDesc desc) | |
| toBinaryName | back to summary |
|---|---|
| public static String toBinaryName(ClassDesc cd) Converts a descriptor of classes or interfaces into
a binary name. Rejects primitive types or arrays.
This is an inverse of | |
| toClassDesc | back to summary |
|---|---|
| public static ClassDesc toClassDesc(String classInternalNameOrArrayDesc) | |
| toInternalName | back to summary |
|---|---|
| public static String toInternalName(ClassDesc cd) | |
| writeAttribute | back to summary |
|---|---|
public static <T extends Attribute
| |
| writeAttributes | back to summary |
|---|---|
public static void writeAttributes(BufWriterImpl buf, List<? extends Attribute<?>> list)
| |
| writeList | back to summary |
|---|---|
pack-priv static void writeList(BufWriterImpl buf, Util.
| |
| writeListIndices | back to summary |
|---|---|
| public static void writeListIndices(BufWriter writer, List<? extends PoolEntry> list) | |
| writeLocalVariable | back to summary |
|---|---|
| public static boolean writeLocalVariable(BufWriterImpl buf, PseudoInstruction lvOrLvt) | |
| writingAll | back to summary |
|---|---|
| public static <T> Consumer | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| writeTo | back to summary |
|---|---|
| public void writeTo(BufWriterImpl writer) | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| writeLocalTo | back to summary |
|---|---|
| public boolean writeLocalTo(BufWriterImpl buf) | |