Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Utility Class Reference

Inheritance diagram for Utility:
[legend]
Collaboration diagram for Utility:
[legend]
List of all members.

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

Detailed Description

Utility functions that do not really belong to any class in particular.

Version:
Id:
Utility.java,v 1.1.1.1 2002/01/24 03:44:00 pserver Exp
Author:
M. Dahm

Definition at line 14 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.


Member Function Documentation

final String Utility::accessToString int   access_flags,
boolean   for_class
[inline, static]
 

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'.

Parameters:
access_flags   Access flags
for_class   access flags are for class qualifiers ?
Returns:
String representation of flags

Definition at line 50 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::accessToString int   access_flags [inline, static]
 

Convert bit field of flags into string such as `static final'.

Parameters:
access_flags   Access flags
Returns:
String representation of flags

Definition at line 35 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::accessToString int   access_flags,
boolean   for_class
[inline, static]
 

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'.

Parameters:
access_flags   Access flags
for_class   access flags are for class qualifiers ?
Returns:
String representation of flags

Definition at line 51 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::accessToString int   access_flags [inline, static]
 

Convert bit field of flags into string such as `static final'.

Parameters:
access_flags   Access flags
Returns:
String representation of flags

Definition at line 35 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by accessToString().

final short Utility::byteToShort byte   b [inline, static, private]
 

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.

final short Utility::byteToShort byte   b [inline, static, private]
 

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().

final String Utility::classOrInterface int   access_flags [inline, static]
 

Returns:
"class" or "interface", depending on the ACC_INTERFACE flag

Definition at line 84 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::classOrInterface int   access_flags [inline, static]
 

Returns:
"class" or "interface", depending on the ACC_INTERFACE flag

Definition at line 85 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final int Utility::clearBit int   flag,
int   i
[inline, static]
 

Returns:
`flag' with bit `i' set to 0

Definition at line 90 of file src/de/fub/bytecode/classfile/Utility.java.

final int Utility::clearBit int   flag,
int   i
[inline, static]
 

Returns:
`flag' with bit `i' set to 0

Definition at line 91 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::codeToString ByteSequence   bytes,
ConstantPool   constant_pool,
boolean   verbose
[inline, static]
 

Disassemble a stream of byte codes and return the string representation.

Parameters:
stream   data input stream
constant_pool   Array of constants
verbose   be verbose, e.g. print constant pool index
Returns:
String representation of byte code

Definition at line 152 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::codeToString byte   code[],
ConstantPool   constant_pool,
int   index,
int   length,
boolean   verbose
[inline, static]
 

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.

Parameters:
code   byte code array
constant_pool   Array of constants
index   offset in `code' array (number of opcodes, not bytes!)
length   number of opcodes to decompile, -1 for all
verbose   be verbose, e.g. print constant pool index
Returns:
String representation of byte codes

Definition at line 113 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::codeToString ByteSequence   bytes,
ConstantPool   constant_pool,
boolean   verbose
[inline, static]
 

Disassemble a stream of byte codes and return the string representation.

Parameters:
stream   data input stream
constant_pool   Array of constants
verbose   be verbose, e.g. print constant pool index
Returns:
String representation of byte code

Definition at line 153 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::codeToString byte   code[],
ConstantPool   constant_pool,
int   index,
int   length,
boolean   verbose
[inline, static]
 

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.

Parameters:
code   byte code array
constant_pool   Array of constants
index   offset in `code' array (number of opcodes, not bytes!)
length   number of opcodes to decompile, -1 for all
verbose   be verbose, e.g. print constant pool index
Returns:
String representation of byte codes

Definition at line 114 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by codeToString().

final String Utility::compactClassName String   str,
boolean   chopit
[inline, static]
 

Shorten long class names, java/lang/String becomes java.lang.String, e.g.. If chopit is true the prefix java.lang is also removed.

Parameters:
str   The long class name
chopit   Flag that determines whether chopping is executed or not
Returns:
Compacted class name

Definition at line 445 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::compactClassName String   str,
String   prefix,
boolean   chopit
[inline, static]
 

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 ..

Parameters:
str   The long class name
prefix   The prefix the get rid off
chopit   Flag that determines whether chopping is executed or not
Returns:
Compacted class name

Definition at line 418 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::compactClassName String   str [inline, static]
 

Shorten long class names, java/lang/String becomes String.

Parameters:
str   The long class name
Returns:
Compacted class name

Definition at line 404 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::compactClassName String   str,
boolean   chopit
[inline, static]
 

Shorten long class names, java/lang/String becomes java.lang.String, e.g.. If chopit is true the prefix java.lang is also removed.

Parameters:
str   The long class name
chopit   Flag that determines whether chopping is executed or not
Returns:
Compacted class name

Definition at line 444 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::compactClassName String   str,
String   prefix,
boolean   chopit
[inline, static]
 

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 ..

Parameters:
str   The long class name
prefix   The prefix the get rid off
chopit   Flag that determines whether chopping is executed or not
Returns:
Compacted class name

Definition at line 417 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::compactClassName String   str [inline, static]
 

Shorten long class names, java/lang/String becomes String.

Parameters:
str   The long class name
Returns:
Compacted class name

Definition at line 403 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by codeToString(), compactClassName(), and signatureToString().

final String Utility::fillup String   str,
int   length,
boolean   left_justify,
char   fill
[inline, static]
 

Fillup char with up to length characters with char `fill' and justify it left or right.

Parameters:
str   string to format
length   length of desired string
left_justify   format left or right
fill   fill character
Returns:
formatted string

Definition at line 499 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::fillup String   str,
int   length,
boolean   left_justify,
char   fill
[inline, static]
 

Fillup char with up to length characters with char `fill' and justify it left or right.

Parameters:
str   string to format
length   length of desired string
left   format left or right
fill   fill character
Returns:
formatted string

Definition at line 468 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by codeToString(), and format().

final String Utility::format int   i,
int   length,
boolean   left_justify,
char   fill
[inline, static]
 

Return a string for an integer justified left or right and filled up with `fill' characters if necessary.

Parameters:
i   integer to format
length   length of desired string
left_justify   format left or right
fill   fill character
Returns:
formatted int

Definition at line 521 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::format int   i,
int   length,
boolean   left_justify,
char   fill
[inline, static]
 

Return a string for an integer justified left or right and filled up with `fill' characters if necessary.

Parameters:
i   integer to format
length   length of desired string
left   format left or right
fill   fill character
Returns:
formatted int

Definition at line 490 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

String Utility::getSignature String   type [inline, static]
 

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.

Parameters:
type   Java type
Returns:
byte code signature

Definition at line 530 of file src/de/fub/bytecode/classfile/Utility.java.

Referenced by typeToSignature().

final boolean Utility::isSet int   flag,
int   i
[inline, static]
 

Returns:
true, if bit `i' in `flag' is set

Definition at line 592 of file src/de/fub/bytecode/classfile/Utility.java.

final boolean Utility::isSet int   flag,
int   i
[inline, static]
 

Returns:
true, if bit `i' in `flag' is set

Definition at line 502 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String [] Utility::methodSignatureArgumentTypes String   signature,
boolean   chopit
[inline, static]
 

Parameters:
signature   Method signature
chopit   Shorten class names ?
Returns:
Array of argument types
Exceptions:
ClassFormatError  

Definition at line 611 of file src/de/fub/bytecode/classfile/Utility.java.

final String [] Utility::methodSignatureArgumentTypes String   signature [inline, static]
 

Parameters:
signature   Method signature
Returns:
Array of argument types
Exceptions:
ClassFormatError  

Definition at line 600 of file src/de/fub/bytecode/classfile/Utility.java.

final String [] Utility::methodSignatureArgumentTypes String   signature,
boolean   chopit
[inline, static]
 

Parameters:
signature   Method signature
chopit   Shorten class names ?
Returns:
Array of argument types
Exceptions:
ClassFormatError  

Definition at line 521 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String [] Utility::methodSignatureArgumentTypes String   signature [inline, static]
 

Parameters:
signature   Method signature
Returns:
Array of argument types
Exceptions:
ClassFormatError  

Definition at line 510 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by methodSignatureArgumentTypes().

final String Utility::methodSignatureReturnType String   signature,
boolean   chopit
[inline, static]
 

Parameters:
signature   Method signature
chopit   Shorten class names ?
Returns:
return type of method
Exceptions:
ClassFormatError  

Definition at line 653 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::methodSignatureReturnType String   signature [inline, static]
 

Parameters:
signature   Method signature
Returns:
return type of method
Exceptions:
ClassFormatError  

Definition at line 642 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::methodSignatureReturnType String   signature,
boolean   chopit
[inline, static]
 

Parameters:
signature   Method signature
chopit   Shorten class names ?
Returns:
return type of method
Exceptions:
ClassFormatError  

Definition at line 563 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::methodSignatureReturnType String   signature [inline, static]
 

Parameters:
signature   Method signature
Returns:
return type of method
Exceptions:
ClassFormatError  

Definition at line 552 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by methodSignatureReturnType().

final String Utility::methodSignatureToString String   signature,
String   name,
String   access,
boolean   chopit
[inline, static]
 

A return­type 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.

Parameters:
signature   Method signature
name   Method name
access   Method access rights
Returns:
Java type declaration
Exceptions:
ClassFormatError  

Definition at line 710 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::methodSignatureToString String   signature,
String   name,
String   access
[inline, static]
 

Converts method signature to string with all class names compacted.

Parameters:
signature   to convert
name   of method
access   flags of method
Returns:
Human readable signature

Definition at line 678 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::methodSignatureToString String   signature,
String   name,
String   access,
boolean   chopit
[inline, static]
 

A return­type 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.

Parameters:
signature   Method signature
name   Method name
access   Method access rights
Returns:
Java type declaration
Exceptions:
ClassFormatError  

Definition at line 620 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::methodSignatureToString String   signature,
String   name,
String   access
[inline, static]
 

Converts method signature to string with all class names compacted.

Parameters:
signature   to convert
name   of method
access   flags of method
Returns:
Human readable signature

Definition at line 588 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by methodSignatureToString().

final String Utility::methodTypeToSignature String   ret,
String   argv[]
[inline, static]
 

Converts string containing the method return and argument types to a byte code method signature.

Parameters:
ret   Return type of method
argv   Types of method arguments
Returns:
Byte code representation of method type

Definition at line 757 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::methodTypeToSignature String   ret,
String   argv[]
[inline, static]
 

Converts string containing the method return and argument types to a byte code method signature.

Parameters:
ret   Return type of method
argv   Types of method arguments
Returns:
Byte code representation of method type

Definition at line 667 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::replace String   str,
String   old,
String   new_
[inline, static]
 

Replace all occurences of old in str with new.

Parameters:
str   String to permute
old   String to be replaced
new   Replacement string
Returns:
new String object

Definition at line 823 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::replace String   str,
String   old,
String   new_
[inline, static]
 

Replace all occurences of old in str with new.

Parameters:
str   String to permute
old   String to be replaced
new   Replacement string
Returns:
new String object

Definition at line 733 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

short Utility::searchOpcode String   name [inline, static]
 

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.

final int Utility::setBit int   flag,
int   i
[inline, static]
 

Returns:
`flag' with bit `i' set to 1

Definition at line 862 of file src/de/fub/bytecode/classfile/Utility.java.

final int Utility::setBit int   flag,
int   i
[inline, static]
 

Returns:
`flag' with bit `i' set to 1

Definition at line 761 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::signatureToString String   signature,
boolean   chopit
[inline, static]
 

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.

Parameters:
signature   Class signature
chopit   Flag that determines whether chopping is executed or not
Returns:
Java type declaration
Exceptions:
ClassFormatError  

Definition at line 908 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::signatureToString String   signature [inline, static]
 

Converts signature to string with all class names compacted.

Parameters:
signature   to convert
Returns:
Human readable signature

Definition at line 871 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::signatureToString String   signature,
boolean   chopit
[inline, static]
 

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.

Parameters:
signature   Class signature
Returns:
Java type declaration
Exceptions:
ClassFormatError  

Definition at line 806 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final String Utility::signatureToString String   signature [inline, static]
 

Converts signature to string with all class names compacted.

Parameters:
signature   to convert
Returns:
Human readable signature

Definition at line 770 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by methodSignatureArgumentTypes(), methodSignatureReturnType(), methodSignatureToString(), and signatureToString().

final String Utility::toHexString byte   bytes[] [inline, static]
 

Convert bytes into hexidecimal string

Returns:
bytes as hexidecimal string, e.g. 00 FA 12 ...

Definition at line 971 of file src/de/fub/bytecode/classfile/Utility.java.

final byte Utility::typeOfMethodSignature String   signature [inline, static]
 

Return type of method signature as a byte value as defined in Constants

Parameters:
signature   in format described above
Returns:
type of method signature
See also:
Constants

Definition at line 996 of file src/de/fub/bytecode/classfile/Utility.java.

final byte Utility::typeOfMethodSignature String   signature [inline, static]
 

Return type of method signature as a byte value as defined in Constants

Parameters:
signature   in format described above
Returns:
type of method signature
See also:
Constants

Definition at line 894 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

final byte Utility::typeOfSignature String   signature [inline, static]
 

Return type of signature as a byte value as defined in Constants

Parameters:
signature   in format described above
Returns:
type of signature
See also:
Constants

Definition at line 1018 of file src/de/fub/bytecode/classfile/Utility.java.

final byte Utility::typeOfSignature String   signature [inline, static]
 

Return type of signature as a byte value as defined in Constants

Parameters:
signature   in format described above
Returns:
type of signature
See also:
Constants

Definition at line 916 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by typeOfMethodSignature().

final String Utility::typeToSignature String   str [inline, static]
 

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;

Parameters:
str   Type string like int[][]
Returns:
Byte code representation of type like [[I
Deprecated:
replaced by getSignature

Definition at line 1049 of file src/de/fub/bytecode/classfile/Utility.java.

final String Utility::typeToSignature String   str [inline, static]
 

Gets Java conformant type like `String[]' and returns a string containing the type in byte code format, i.e. String[] becomes [Ljava/lang/String;

Parameters:
str   Type string like int[][]
Returns:
Byte code representation of type like [[I

Definition at line 946 of file lib/jpf/de/fub/bytecode/classfile/Utility.java.

Referenced by methodTypeToSignature().


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:22:47 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001