| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final String | Returns: String representation of flagsAccess flags access_flags)Convert bit field of flags into string such as 'static final'. |
| public static final String | Returns: String representation of flagsAccess flags access_flags, boolean access flags are for class qualifiers ? for_class)Convert bit field of flags into string such as 'static final'. |
| private static final short | byteToShort(byte b)
Convert (signed) byte to (unsigned) short value, i.e., all negative values become positive. |
| public static final String | Returns: "class" or "interface", depending on the ACC_INTERFACE flag
|
| public static final String | Returns: String representation of byte codesbyte code array code, ConstantPool Array of constants constant_pool, int offset in `code' array (number of opcodes, not bytes!) index, int number of opcodes to decompile, -1 for all length, boolean be verbose, e.g. print constant pool index verbose)Disassemble a byte array of JVM byte codes starting from code line 'index' and return the disassembled string representation. |
| public static final String | codeToString(byte[] code, ConstantPool constant_pool, int index, int length)
Disassemble a stream of byte codes and return the string representation. |
| public static final String | |
| public static final String | Returns: String representation of byte codestream of bytes bytes, ConstantPool Array of constants constant_pool, boolean be verbose, e.g. print constant pool index verbose)Disassemble a stream of byte codes and return the string representation. |
| public static final String | Returns: Compacted class nameThe long class name str)Shorten long class names, java/lang/String becomes String. |
| public static final String | Returns: Compacted class nameThe long class name str, String The prefix the get rid off prefix, boolean Flag that determines whether chopping is executed or not chopit)Shorten long class name str, i.e., chop off the prefix, if the class name starts with this string and the flag chopit is true. |
| public static final String | Returns: Compacted class nameThe long class name str, boolean Flag that determines whether chopping is executed or not chopit)Shorten long class names, java/lang/String becomes java.lang.String, e.g.. |
| public static final String | |
| public static final String | |
| public static final String | Returns: formatted intinteger to format i, int length of desired string length, boolean format left or right left_justify, char fill character fill)Return a string for an integer justified left or right and filled up with 'fill' characters if necessary. |
| public static Collection | getAnnotationAttributes(ConstantPool
The constant pool gen where we can create the necessary name refs cp, List<AnnotationGen> A list of AnnotationGen objects annotations)Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file. |
| public static Attribute[] | getParameterAnnotationAttributes(ConstantPool cp, List<AnnotationGen>[] vec)
Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotations |
| public static final String | |
| public static final String | |
| public static final String | methodSignatureToString(String signature, String name, String access, boolean chopit, LocalVariableTable vars)
This method converts such a string into a Java type declaration like 'void main(String[])' and throws a 'ClassFormatException' when the parsed type is invalid. |
| private static final int | |
| public static final String | |
| public static final String | Returns: Human readable signatureto convert signature)Converts signature to string with all class names compacted. |
| public static final String | |
| public static final Utility. | signatureToStringInternal(String signature, boolean chopit)
This method converts this string into a Java type declaration such as 'String[]' and throws a `ClassFormatException' when the parsed type is invalid. |
| public static final String | Returns: bytes as hexidecimal string, e.g. 00 FA 12 ...Convert bytes into hexidecimal string |
| public static String | Returns: method signature for given type(s).what the method returns returnType, Type[] what are the argument types argTypes)Convert type to Java method signature, e.g. int[] f(java.lang.String x) becomes (Ljava/lang/String;)[I |
| public static final byte | Returns: type of method signaturein format described above signature)Return type of method signature as a byte value as defined in Constants |
| public static final byte | Returns: type of signaturein format described above signature)Return type of signature as a byte value as defined in Constants |
| public static final byte |
| wide | back to summary |
|---|---|
| private static boolean wide | |
| Utility | back to summary |
|---|---|
| public Utility() | |
| accessToString | back to summary |
|---|---|
| public static final String accessToString(int access_flags) Convert bit field of flags into string such as 'static final'.
| |
| accessToString | back to summary |
|---|---|
| public static final String accessToString(int access_flags, boolean for_class) Convert bit field of flags into string such as 'static final'. Special case: Classes compiled with new compilers and with the 'ACC_SUPER' flag would be said to be "synchronized". This is because SUN used the same value for the flags 'ACC_SUPER' and 'ACC_SYNCHRONIZED'.
| |
| byteToShort | back to summary |
|---|---|
| private static final short byteToShort(byte b) Convert (signed) byte to (unsigned) short value, i.e., all negative values become positive. | |
| classOrInterface | back to summary |
|---|---|
public static final String classOrInterface(int access_flags)
| |
| codeToString | back to summary |
|---|---|
| public static final String codeToString(byte[] code, ConstantPool constant_pool, int index, int length, boolean verbose) Disassemble a byte array of JVM byte codes starting from code line 'index' and return the disassembled string representation. Decode only 'num' opcodes (including their operands), use -1 if you want to decompile everything.
| |
| codeToString | back to summary |
|---|---|
| public static final String codeToString(byte[] code, ConstantPool constant_pool, int index, int length) Disassemble a stream of byte codes and return the string representation. | |
| codeToString | back to summary |
|---|---|
| public static final String codeToString(ByteSequence bytes, ConstantPool constant_pool) throws IOException | |
| codeToString | back to summary |
|---|---|
| public static final String codeToString(ByteSequence bytes, ConstantPool constant_pool, boolean verbose) throws IOException Disassemble a stream of byte codes and return the string representation.
| |
| compactClassName | back to summary |
|---|---|
| public static final String compactClassName(String str) Shorten long class names, java/lang/String becomes String. | |
| compactClassName | back to summary |
|---|---|
| public static final String compactClassName(String str, String prefix, boolean chopit) Shorten long class name str, i.e., chop off the prefix, if the class name starts with this string and the flag chopit is true. Slashes / are converted to dots .. | |
| compactClassName | back to summary |
|---|---|
| public static final String compactClassName(String str, boolean chopit) Shorten long class names, java/lang/String becomes java.lang.String, e.g.. If chopit is true the prefix java.lang is also removed. | |
| convertString | back to summary |
|---|---|
| public static final String convertString(String label) Escape all occurences of newline chars '\n', quotes \", etc. | |
| fillup | back to summary |
|---|---|
| public static final String fillup(String str, int length, boolean left_justify, char fill) Fillup char with up to length characters with char `fill' and justify it left or right. | |
| format | back to summary |
|---|---|
| public static final String format(int i, int length, boolean left_justify, char fill) Return a string for an integer justified left or right and filled up with 'fill' characters if necessary.
| |
| getAnnotationAttributes | back to summary |
|---|---|
| public static Collection Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file.
| |
| getParameterAnnotationAttributes | back to summary |
|---|---|
| public static Attribute[] getParameterAnnotationAttributes(ConstantPool cp, List<AnnotationGen>[] vec) Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotations | |
| methodSignatureToString | back to summary |
|---|---|
| public static final String methodSignatureToString(String signature, String name, String access) | |
| methodSignatureToString | back to summary |
|---|---|
| public static final String methodSignatureToString(String signature, String name, String access, boolean chopit) | |
| methodSignatureToString | back to summary |
|---|---|
| public static final String methodSignatureToString(String signature, String name, String access, boolean chopit, LocalVariableTable vars) throws ClassFormatException This method converts such a string into a Java type declaration like 'void main(String[])' and throws a 'ClassFormatException' when the parsed type is invalid. | |
| pow2 | back to summary |
|---|---|
| private static final int pow2(int n) | |
| replace | back to summary |
|---|---|
| public static final String replace(String str, String old, String new_) Replace all occurences of old in str with new. | |
| signatureToString | back to summary |
|---|---|
| public static final String signatureToString(String signature) Converts signature to string with all class names compacted. | |
| signatureToString | back to summary |
|---|---|
| public static final String signatureToString(String signature, boolean chopit) | |
| signatureToStringInternal | back to summary |
|---|---|
| public static final Utility. This method converts this string into a Java type declaration such as 'String[]' and throws a `ClassFormatException' when the parsed type is invalid. | |
| toHexString | back to summary |
|---|---|
| public static final String toHexString(byte[] bytes) Convert bytes into hexidecimal string
| |
| toMethodSignature | back to summary |
|---|---|
| public static String toMethodSignature(Type returnType, Type[] argTypes) Convert type to Java method signature, e.g. int[] f(java.lang.String x) becomes (Ljava/lang/String;)[I | |
| typeOfMethodSignature | back to summary |
|---|---|
| public static final byte typeOfMethodSignature(String signature) throws ClassFormatException Return type of method signature as a byte value as defined in Constants | |
| typeOfSignature | back to summary |
|---|---|
| public static final byte typeOfSignature(String signature) throws ClassFormatException Return type of signature as a byte value as defined in Constants | |
| typeOfSignature | back to summary |
|---|---|
| public static final byte typeOfSignature(char c) throws ClassFormatException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Utility. | |
| public static final Utility. | |
| public static final Utility. | |
| private int | |
| public static final Utility. | |
| public static final Utility. | |
| public static final Utility. | |
| public static final Utility. | |
| private String | |
| public static final Utility. | |
| public static final Utility. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String |
| BOOLEAN | back to summary |
|---|---|
| public static final Utility. | |
| BYTE | back to summary |
|---|---|
| public static final Utility. | |
| CHAR | back to summary |
|---|---|
| public static final Utility. | |
| consumed | back to summary |
|---|---|
| private int consumed | |
| DOUBLE | back to summary |
|---|---|
| public static final Utility. | |
| FLOAT | back to summary |
|---|---|
| public static final Utility. | |
| INT | back to summary |
|---|---|
| public static final Utility. | |
| LONG | back to summary |
|---|---|
| public static final Utility. | |
| result | back to summary |
|---|---|
| private String result | |
| SHORT | back to summary |
|---|---|
| public static final Utility. | |
| VOID | back to summary |
|---|---|
| public static final Utility. | |
| ResultHolder | back to summary |
|---|---|
| public ResultHolder(String s, int c) | |
| getConsumedChars | back to summary |
|---|---|
| public int getConsumedChars() | |
| getResult | back to summary |
|---|---|
| public String getResult() | |