SandMark version 3.0


sandmark.util
Class BCEL

java.lang.Object
  |
  +--sandmark.util.BCEL

public class BCEL
extends java.lang.Object

Utility routines to work with BCEL (JavaClass).


Constructor Summary
BCEL()
           
 
Method Summary
static java.lang.String addArgumentLast(java.lang.String signature, java.lang.String newType)
          Return the method signature resulting from adding the type type as the last argument.
static int findLocal(java.lang.String name, de.fub.bytecode.generic.MethodGen mg)
          Return the index of local variable 'name' in method 'mg'.
static MethodID[] getMethods(de.fub.bytecode.classfile.JavaClass jc)
          Return a list of all the methods in the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCEL

public BCEL()
Method Detail

findLocal

public static int findLocal(java.lang.String name,
                            de.fub.bytecode.generic.MethodGen mg)
Return the index of local variable 'name' in method 'mg'. Return -1 if the variable wasn't found.

Parameters:
name - the name of the local variable
mg - the method in which to add the variable

getMethods

public static MethodID[] getMethods(de.fub.bytecode.classfile.JavaClass jc)
Return a list of all the methods in the class.

Parameters:
jc - the class

addArgumentLast

public static java.lang.String addArgumentLast(java.lang.String signature,
                                               java.lang.String newType)
Return the method signature resulting from adding the type type as the last argument.

Parameters:
signature - the method signature
newType - the type of the new argumenht

SandMark version 3.0

Wed Jan 29 10:30:05 MST 2003