Static Public Methods | |
final String | accessToString (int access_flags) |
final String | accessToString (int access_flags, boolean for_class) |
final String | classOrInterface (int access_flags) |
final int | clearBit (int flag, int i) |
final String | codeToString (byte[] code, ConstantPool constant_pool, int index, int length) |
final String | codeToString (byte[] code, ConstantPool constant_pool, int index, int length, boolean verbose) |
final String | codeToString (ByteSequence bytes, ConstantPool constant_pool) throws IOException |
final String | codeToString (ByteSequence bytes, ConstantPool constant_pool, boolean verbose) throws IOException |
final String | compactClassName (String str) |
final String | compactClassName (String str, String prefix, boolean chopit) |
final String | compactClassName (String str, boolean chopit) |
final String | fillup (String str, int length, boolean left_justify, char fill) |
final String | format (int i, int length, boolean left_justify, char fill) |
final boolean | isSet (int flag, int i) |
final String[] | methodSignatureArgumentTypes (String signature) throws ClassFormatError |
final String[] | methodSignatureArgumentTypes (String signature, boolean chopit) throws ClassFormatError |
final String | methodSignatureReturnType (String signature) throws ClassFormatError |
final String | methodSignatureReturnType (String signature, boolean chopit) throws ClassFormatError |
final String | methodSignatureToString (String signature, String name, String access) |
final String | methodSignatureToString (String signature, String name, String access, boolean chopit) throws ClassFormatError |
final String | methodTypeToSignature (String ret, String[] argv) throws ClassFormatError |
final String | printArray (Object[] obj) |
final String | printArray (Object[] obj, boolean braces) |
final void | printArray (PrintStream out, Object[] obj) |
final void | printArray (PrintWriter out, Object[] obj) |
final String | replace (String str, String old, String new_) |
final int | setBit (int flag, int i) |
final String | signatureToString (String signature) |
final String | signatureToString (String signature, boolean chopit) throws ClassFormatError |
final String | toHexString (byte[] bytes) |
final byte | typeOfMethodSignature (String signature) throws ClassFormatError |
final byte | typeOfSignature (String signature) throws ClassFormatError |
final String | typeToSignature (String str) throws ClassFormatError |
final String | accessToString (int access_flags) |
final String | accessToString (int access_flags, boolean for_class) |
final String | classOrInterface (int access_flags) |
final int | clearBit (int flag, int i) |
final String | codeToString (byte[] code, ConstantPool constant_pool, int index, int length) |
final String | codeToString (byte[] code, ConstantPool constant_pool, int index, int length, boolean verbose) |
final String | codeToString (ByteSequence bytes, ConstantPool constant_pool) throws IOException |
final String | codeToString (ByteSequence bytes, ConstantPool constant_pool, boolean verbose) throws IOException |
final String | compactClassName (String str) |
final String | compactClassName (String str, String prefix, boolean chopit) |
final String | compactClassName (String str, boolean chopit) |
final String | fillup (String str, int length, boolean left_justify, char fill) |
final String | format (int i, int length, boolean left_justify, char fill) |
String | getSignature (String type) |
final boolean | isSet (int flag, int i) |
final String[] | methodSignatureArgumentTypes (String signature) throws ClassFormatError |
final String[] | methodSignatureArgumentTypes (String signature, boolean chopit) throws ClassFormatError |
final String | methodSignatureReturnType (String signature) throws ClassFormatError |
final String | methodSignatureReturnType (String signature, boolean chopit) throws ClassFormatError |
final String | methodSignatureToString (String signature, String name, String access) |
final String | methodSignatureToString (String signature, String name, String access, boolean chopit) throws ClassFormatError |
final String | methodTypeToSignature (String ret, String[] argv) throws ClassFormatError |
final String | printArray (Object[] obj) |
final String | printArray (Object[] obj, boolean braces) |
final void | printArray (PrintStream out, Object[] obj) |
final void | printArray (PrintWriter out, Object[] obj) |
final String | replace (String str, String old, String new_) |
short | searchOpcode (String name) |
final int | setBit (int flag, int i) |
final String | signatureToString (String signature) |
final String | signatureToString (String signature, boolean chopit) |
final String | toHexString (byte[] bytes) |
final byte | typeOfMethodSignature (String signature) throws ClassFormatError |
final byte | typeOfSignature (String signature) throws ClassFormatError |
final String | typeToSignature (String str) |
Static Private Methods | |
final short | byteToShort (byte b) |
final boolean | equals (byte[] a, byte[] b) |
final boolean | is_digit (char ch) |
final boolean | is_space (char ch) |
final int | pow2 (int n) |
final short | byteToShort (byte b) |
int | countBrackets (String brackets) |
final boolean | equals (byte[] a, byte[] b) |
final boolean | is_digit (char ch) |
final boolean | is_space (char ch) |
final int | pow2 (int n) |
Static Private Attributes | |
int | consumed_chars |
boolean | wide = false |
Definition at line 14 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.
|
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'.
Definition at line 50 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Convert bit field of flags into string such as `static final'.
Definition at line 35 of file src/de/fub/bytecode/classfile/Utility.java. |
|
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'.
Definition at line 51 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Convert bit field of flags into string such as `static final'.
Definition at line 35 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by accessToString().
|
|
Convert (signed) byte to (unsigned) short value, i.e., all negative values become positive. Definition at line 78 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Convert (signed) byte to (unsigned) short value, i.e. all negative values become positive. Definition at line 79 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by toHexString().
|
|
Definition at line 84 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 85 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 90 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 91 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Disassemble a stream of byte codes and return the string representation.
Definition at line 152 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Disassemble a byte array of JVM byte codes starting from code line `index' and return the dissambled string representation. Decode only `num' opcodes (including their operands), use -1 if you want to decompile everything.
Definition at line 113 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Disassemble a stream of byte codes and return the string representation.
Definition at line 153 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Disassemble a byte array of JVM byte codes starting from code line `index' and return the dissambled string representation. Decode only `num' opcodes (including their operands), use -1 if you want to decompile everything.
Definition at line 114 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by codeToString().
|
|
Shorten long class names, java/lang/String becomes java.lang.String, e.g.. If chopit is true the prefix java.lang is also removed.
Definition at line 445 of file src/de/fub/bytecode/classfile/Utility.java. |
|
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 ..
Definition at line 418 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Shorten long class names, java/lang/String becomes String.
Definition at line 404 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Shorten long class names, java/lang/String becomes java.lang.String, e.g.. If chopit is true the prefix java.lang is also removed.
Definition at line 444 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
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 ..
Definition at line 417 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Shorten long class names, java/lang/String becomes String.
Definition at line 403 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by codeToString(), compactClassName(), and signatureToString().
|
|
Fillup char with up to length characters with char `fill' and justify it left or right.
Definition at line 499 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Fillup char with up to length characters with char `fill' and justify it left or right.
Definition at line 468 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by codeToString(), and format().
|
|
Return a string for an integer justified left or right and filled up with `fill' characters if necessary.
Definition at line 521 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Return a string for an integer justified left or right and filled up with `fill' characters if necessary.
Definition at line 490 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Parse Java type such as "char", or "java.lang.String[]" and return the signature in byte code format, e.g. "C" or "[Ljava/lang/String;" respectively.
Definition at line 530 of file src/de/fub/bytecode/classfile/Utility.java. Referenced by typeToSignature().
|
|
Definition at line 592 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 502 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 611 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 600 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 521 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 510 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by methodSignatureArgumentTypes().
|
|
Definition at line 653 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 642 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 563 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 552 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by methodSignatureReturnType().
|
|
A returntype signature represents the return value from a method. It is a series of bytes in the following grammar: <return_signature> ::= <field_type> | V The character V indicates that the method returns no value. Otherwise, the signature indicates the type of the return value. An argument signature represents an argument passed to a method: <argument_signature> ::= <field_type> A method signature represents the arguments that the method expects, and the value that it returns. <method_signature> ::= (<arguments_signature>) <return_signature> <arguments_signature>::= <argument_signature>* This method converts such a string into a Java type declaration like `void main(String[])' and throws a `ClassFormatError' when the parsed type is invalid.
Definition at line 710 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Converts method signature to string with all class names compacted.
Definition at line 678 of file src/de/fub/bytecode/classfile/Utility.java. |
|
A returntype signature represents the return value from a method. It is a series of bytes in the following grammar: <return_signature> ::= <field_type> | V The character V indicates that the method returns no value. Otherwise, the signature indicates the type of the return value. An argument signature represents an argument passed to a method: <argument_signature> ::= <field_type> A method signature represents the arguments that the method expects, and the value that it returns. <method_signature> ::= (<arguments_signature>) <return_signature> <arguments_signature>::= <argument_signature>* This method converts such a string into a Java type declaration like `void main(String[])' and throws a `ClassFormatError' when the parsed type is invalid.
Definition at line 620 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Converts method signature to string with all class names compacted.
Definition at line 588 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by methodSignatureToString().
|
|
Converts string containing the method return and argument types to a byte code method signature.
Definition at line 757 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Converts string containing the method return and argument types to a byte code method signature.
Definition at line 667 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Replace all occurences of old in str with new.
Definition at line 823 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Replace all occurences of old in str with new.
Definition at line 733 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Map opcode names to opcode numbers. E.g., return Constants.ALOAD for "aload" Definition at line 850 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 862 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Definition at line 761 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
The field signature represents the value of an argument to a function or the value of a variable. It is a series of bytes generated by the following grammar:
<field_signature> ::= <field_type> <field_type> ::= <base_type>|<object_type>|<array_type> <base_type> ::= B|C|D|F|I|J|S|Z <object_type> ::= L<fullclassname>; <array_type> ::= [<field_type> The meaning of the base types is as follows: B byte signed byte C char character D double double precision IEEE float F float single precision IEEE float I int integer J long long integer L<fullclassname>; ... an object of the given class S short signed short Z boolean true or false [<field sig> ... array This method converts this string into a Java type declaration such as `String[]' and throws a `ClassFormatError' when the parsed type is invalid.
Definition at line 908 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Converts signature to string with all class names compacted.
Definition at line 871 of file src/de/fub/bytecode/classfile/Utility.java. |
|
The field signature represents the value of an argument to a function or the value of a variable. It is a series of bytes generated by the following grammar:
<field_signature> ::= <field_type> <field_type> ::= <base_type>|<object_type>|<array_type> <base_type> ::= B|C|D|F|I|J|S|Z <object_type> ::= L<fullclassname>; <array_type> ::= [<field_type> The meaning of the base types is as follows: B byte signed byte C char character D double double precision IEEE float F float single precision IEEE float I int integer J long long integer L<fullclassname>; ... an object of the given class S short signed short Z boolean true or false [<field sig> ... array This method converts this string into a Java type declaration such as `String[]' and throws a `ClassFormatError' when the parsed type is invalid.
Definition at line 806 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Converts signature to string with all class names compacted.
Definition at line 770 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by methodSignatureArgumentTypes(), methodSignatureReturnType(), methodSignatureToString(), and signatureToString().
|
|
Convert bytes into hexidecimal string
Definition at line 971 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Return type of method signature as a byte value as defined in Constants
Definition at line 996 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Return type of method signature as a byte value as defined in Constants
Definition at line 894 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. |
|
Return type of signature as a byte value as defined in Constants
Definition at line 1018 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Return type of signature as a byte value as defined in Constants
Definition at line 916 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by typeOfMethodSignature().
|
|
Gets Java conformant type like `java.lang.String[]' and returns a string containing the type in byte code format, i.e., String[] becomes [Ljava/lang/String;
Definition at line 1049 of file src/de/fub/bytecode/classfile/Utility.java. |
|
Gets Java conformant type like `String[]' and returns a string containing the type in byte code format, i.e. String[] becomes [Ljava/lang/String;
Definition at line 946 of file lib/jpf/de/fub/bytecode/classfile/Utility.java. Referenced by methodTypeToSignature().
|