| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Utility functions that do not really belong to any class in particular.
Method Summary | |
final static String | accessToString(int access_flags) Convert bit field of flags into string such as `static final'. |
final static String | accessToString(int access_flags, boolean for_class) Convert bit field of flags into string such as `static final'. |
final static int | bytesToInt(byte b0, byte b1, byte b2, byte b3) Obtains the signed 32-bit value from 4 bytes, bytesToInt((byte) 0, (byte) 0, b1, b1) obtains the unsigned 16-bit value from 2 bytes. |
final static short | bytesToShort(byte b0, byte b1) bytesToShort(b0, b1) obtains the signed 16-bit value from 2 bytes. |
final static int | bytesToUnsignedShort(byte b0, byte b1) bytesToUnsignedShort(b0, b1) obtains the unsigned 16-bit value from 2 bytes. |
final static short | byteToShort(byte b) Convert (signed) byte to (unsigned) short value, i.e. |
final static String | codeToString(byte[] code, ConstantPool constant_pool, int index, int length) Disassemble a byte array of JVM byte codes starting from code line `index' and return the dissambled string representation. |
final static String | codeToString(ByteSequence bytes, ConstantPool constant_pool) Disassemble a stream of byte codes and return the string representation. |
final static String | compactClassName(String str) Shorten long class names, java/lang/String becomes String. |
final static String | compactClassName(String str, String prefix, boolean chopit) Shorten long class name str, i.e. |
final static String | compactClassName(String str, boolean chopit) Shorten long class names, java/lang/String becomes java.lang.String, e.g.. |
final static String[] | methodSignatureArgumentTypes(String signature) |
final static String[] | methodSignatureArgumentTypes(String signature, boolean chopit) |
final static String | methodSignatureReturnType(String signature) |
final static String | methodSignatureReturnType(String signature, boolean chopit) |
final static String | methodSignatureToString(String signature, String name, String access) Converts method signature to string with all class names compacted. |
final static String | methodSignatureToString(String signature, String name, String access, boolean chopit) A return\u00adtype signature represents the return value from a method. |
final static String | methodTypeToSignature(String ret, String[] argv) Converts string containing the method return and argument types to a byte code method signature. |
final static String | replace(String str, String old, String new_) Replace all occurences of old in str with new. |
final static String | signatureToString(String signature) Converts signature to string with all class names compacted. |
final static String | signatureToString(String signature, boolean chopit) The field signature represents the value of an argument to a function or the value of a variable. |
final static String | toHexString(byte[] bytes) |
final static byte | typeOfMethodSignature(String signature) |
final static byte | typeOfSignature(String signature) Return type of signature as a byte value as defined in Constants |
final static String | typeToSignature(String str) Gets Java conformant type like `String[]' and returns a string containing the type in byte code format, i.e. |
Method Detail |
public final static String accessToString(int access_flags)
public final static String accessToString(int access_flags, boolean for_class)
public final static int bytesToInt(byte b0, byte b1, byte b2, byte b3)
public final static short bytesToShort(byte b0, byte b1)
public final static int bytesToUnsignedShort(byte b0, byte b1)
public final static short byteToShort(byte b)
public final static String codeToString(byte[] code, ConstantPool constant_pool, int index, int length)
public final static String codeToString(ByteSequence bytes, ConstantPool constant_pool)
throws java.io.IOException
public final static String compactClassName(String str)
public final static String compactClassName(String str, String prefix, boolean chopit)
public final static String compactClassName(String str, boolean chopit)
public final static String[] methodSignatureArgumentTypes(String signature)
throws java.lang.ClassFormatError
public final static String[] methodSignatureArgumentTypes(String signature, boolean chopit)
throws java.lang.ClassFormatError
public final static String methodSignatureReturnType(String signature)
throws java.lang.ClassFormatError
public final static String methodSignatureReturnType(String signature, boolean chopit)
throws java.lang.ClassFormatError
public final static String methodSignatureToString(String signature, String name, String access)
public final static String methodSignatureToString(String signature, String name, String access, boolean chopit)
throws java.lang.ClassFormatError
public final static String methodTypeToSignature(String ret, String[] argv)
throws java.lang.ClassFormatError
public final static String replace(String str, String old, String new_)
public final static String signatureToString(String signature)
public final static String signatureToString(String signature, boolean chopit)
throws java.lang.ClassFormatError
public final static String toHexString(byte[] bytes)
public final static byte typeOfMethodSignature(String signature)
throws java.lang.ClassFormatError
public final static byte typeOfSignature(String signature)
throws java.lang.ClassFormatError
public final static String typeToSignature(String str)
throws java.lang.ClassFormatError
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |