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

MethodGen Class Reference

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

Public Methods

 MethodGen (int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cp)
 MethodGen (Method m, String class_name, ConstantPoolGen cp)
void addAttribute (Attribute a)
void addCodeAttribute (Attribute a)
void addException (String class_name)
CodeExceptionGen addExceptionHandler (InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, ObjectType catch_type)
CodeExceptionGen addExceptionHandler (InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, String catch_type)
LineNumberGen addLineNumber (InstructionHandle ih, int src_line)
LocalVariableGen addLocalVariable (String name, Type type, int slot, InstructionHandle start, InstructionHandle end)
LocalVariableGen addLocalVariable (String name, Type type, InstructionHandle start, InstructionHandle end)
Type getArgType (int i)
Type[] getArgTypes ()
Attribute[] getAttributes ()
String getClassName ()
Attribute[] getCodeAttributes ()
ConstantPoolGen getConstantPool ()
CodeExceptionGen[] getExceptionHandlers ()
String[] getExceptions ()
InstructionList getInstructionList ()
LineNumberGen[] getLineNumbers ()
LineNumberTable getLineNumberTable (ConstantPoolGen cp)
LocalVariableGen[] getLocalVariables ()
LocalVariableTable getLocalVariableTable (ConstantPoolGen cp)
int getMaxLocals ()
int getMaxStack ()
Method getMethod ()
String getMethodName ()
String getMethodSignature ()
Type getReturnType ()
void removeAttribute (Attribute a)
void removeCodeAttribute (Attribute a)
void removeException (String c)
void removeExceptionHandler (CodeExceptionGen c)
void removeLineNumber (LineNumberGen l)
void removeLocalVariable (LocalVariableGen l)
void removeNOPs ()
void setArgType (int i, Type type)
void setArgTypes (Type[] arg_types)
void setConstantPool (ConstantPoolGen cp)
void setInstructionList (InstructionList il)
void setMaxLocals ()
void setMaxLocals (int m)
void setMaxStack ()
void setMaxStack (int m)
void setMethodName (String method_name)
void setReturnType (Type return_type)
void stripAttributes (boolean flag)
 MethodGen (int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cp)
 MethodGen (Method m, String class_name, ConstantPoolGen cp)
void addCodeAttribute (Attribute a)
void addException (String class_name)
CodeExceptionGen addExceptionHandler (InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, ObjectType catch_type)
CodeExceptionGen addExceptionHandler (InstructionHandle start_pc, InstructionHandle end_pc, InstructionHandle handler_pc, String catch_type)
LineNumberGen addLineNumber (InstructionHandle ih, int src_line)
LocalVariableGen addLocalVariable (String name, Type type, int slot, InstructionHandle start, InstructionHandle end)
LocalVariableGen addLocalVariable (String name, Type type, InstructionHandle start, InstructionHandle end)
void addObserver (MethodObserver o)
String getArgName (int i)
String[] getArgNames ()
Type getArgType (int i)
Type[] getArgTypes ()
String getClassName ()
Attribute[] getCodeAttributes ()
CodeExceptionGen[] getExceptionHandlers ()
String[] getExceptions ()
InstructionList getInstructionList ()
LineNumberGen[] getLineNumbers ()
LineNumberTable getLineNumberTable (ConstantPoolGen cp)
LocalVariableGen[] getLocalVariables ()
LocalVariableTable getLocalVariableTable (ConstantPoolGen cp)
int getMaxLocals ()
int getMaxStack ()
Method getMethod ()
String getMethodName ()
String getMethodSignature ()
Type getReturnType ()
String getSignature ()
void removeCodeAttribute (Attribute a)
void removeException (String c)
void removeExceptionHandler (CodeExceptionGen c)
void removeExceptionHandlers ()
void removeExceptions ()
void removeLineNumber (LineNumberGen l)
void removeLineNumbers ()
void removeLocalVariable (LocalVariableGen l)
void removeLocalVariables ()
void removeNOPs ()
void removeObserver (MethodObserver o)
void setArgName (int i, String name)
void setArgNames (String[] arg_names)
void setArgType (int i, Type type)
void setArgTypes (Type[] arg_types)
void setClassName (String class_name)
void setInstructionList (InstructionList il)
void setMaxLocals ()
void setMaxLocals (int m)
void setMaxStack ()
void setMaxStack (int m)
void setMethodName (String method_name)
void setReturnType (Type return_type)
void stripAttributes (boolean flag)
final String toString ()
void update ()

Static Public Methods

int getMaxStack (ConstantPoolGen cp, InstructionList il, CodeExceptionGen[] et)
int getMaxStack (ConstantPoolGen cp, InstructionList il, CodeExceptionGen[] et)

Private Methods

CodeException[] getCodeExceptions ()
ExceptionTable getExceptionTable (ConstantPoolGen cp)
CodeException[] getCodeExceptions ()
ExceptionTable getExceptionTable (ConstantPoolGen cp)

Static Private Methods

final void sort (LocalVariableGen[] vars, int l, int r)

Private Attributes

String method_name
String class_name
Type return_type
Type[] arg_types
String[] arg_names
int max_locals
int max_stack
InstructionList il
ConstantPoolGen cp
boolean strip_attributes
Vector variable_vec = new Vector()
Vector line_number_vec = new Vector()
Vector attribute_vec = new Vector()
Vector exception_vec = new Vector()
Vector throws_vec = new Vector()
Vector code_attrs_vec = new Vector()
Type[] arg_types
String[] arg_names
Vector observers

Detailed Description

Template class for building up a method. This is done by defining exception handlers, adding thrown exceptions, local variables and attributes, whereas the `LocalVariableTable' and `LineNumberTable' attributes will be set automatically for the code.

While generating code it may be necessary to insert NOP operations. You can use the `removeNOPs' method to get rid off them. The resulting method object can be obtained via the `getMethod()' method.

Version:
Id:
MethodGen.java,v 1.1.1.1 2002/01/24 03:44:03 pserver Exp
Author:
M. Dahm , Patrick C. Beard
See also:
InstructionList , Method

Definition at line 23 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.


Constructor & Destructor Documentation

MethodGen::MethodGen int   access_flags,
Type   return_type,
Type   arg_types[],
String   arg_names[],
String   method_name,
String   class_name,
InstructionList   il,
ConstantPoolGen   cp
[inline]
 

Declare method. If the method is non-static the constructor automatically declares a local variable `$this' in slot 0. The actual code is contained in the `il' parameter, which may further manipulated by the user. But he must take care not to remove any instruction (handles) that are still referenced from this object.

For example one may not add a local variable and later remove the instructions it refers to without causing havoc. It is safe however if you remove that local variable, too.

Parameters:
access_flags   access qualifiers
return_type   method type
arg_types   argument types
arg_names   argument names (if this is null, default names will be provided for them)
method_name   name of method
class_name   class name containing this method (may be null, if you don't care)
il   instruction list associated with this method, may be null only for abstract or native methods
cp   constant pool

Definition at line 106 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

MethodGen::MethodGen Method   m,
String   class_name,
ConstantPoolGen   cp
[inline]
 

Instantiate from existing method.

Parameters:
m   method
class_name   class name containing this method
cp   constant pool (must contain the same entries as the method's constant pool)

Definition at line 153 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

MethodGen::MethodGen int   access_flags,
Type   return_type,
Type   arg_types[],
String   arg_names[],
String   method_name,
String   class_name,
InstructionList   il,
ConstantPoolGen   cp
[inline]
 

Declare method. If the method is non-static the constructor automatically declares a local variable `$this' in slot 0. The actual code is contained in the `il' parameter, which may further manipulated by the user. But he must take care not to remove any instruction (handles) that are still referenced from this object.

For example one may not add a local variable and later remove the instructions it refers to without causing havoc. It is safe however if you remove that local variable, too.

Parameters:
access_flags   access qualifiers
return_type   method type
arg_types   argument types
arg_names   argument names (if this is null, default names will be provided for them)
method_name   name of method
class_name   class name containing this method (may be null, if you don't care)
il   instruction list associated with this method, may be null only for abstract or native methods
cp   constant pool

Definition at line 104 of file src/de/fub/bytecode/generic/MethodGen.java.

MethodGen::MethodGen Method   m,
String   class_name,
ConstantPoolGen   cp
[inline]
 

Instantiate from existing method.

Parameters:
m   method
class_name   class name containing this method
cp   constant pool (must contain the same entries as the method's constant pool)

Definition at line 151 of file src/de/fub/bytecode/generic/MethodGen.java.


Member Function Documentation

void MethodGen::addAttribute Attribute   a [inline]
 

Add an attribute to this method. Currently, the JVM knows about the `Code' and `Exceptions' attribute, which will be generated automatically. Other attributes will be ignored by the JVM but do no harm.

Parameters:
a   attribute to be added

Reimplemented from FieldGenOrMethodGen.

Definition at line 239 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::addCodeAttribute Attribute   a [inline]
 

Add an attribute to the code. Currently, the JVM knows about the `LineNumberTable' and `LocalVariableTable' attributes, which will be generated automatically. Other attributes will be ignored by the JVM but do no harm.

Parameters:
a   attribute to be added

Definition at line 238 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::addCodeAttribute Attribute   a [inline]
 

Add an attribute to the code. Currently, the JVM knows about the `LineNumberTable' and `LocalVariableTable' attributes, which will be generated automatically. Other attributes will be ignored by the JVM but do no harm.

Parameters:
a   attribute to be added

Definition at line 247 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::addException String   class_name [inline]
 

Add an exception possibly thrown by this method.

Parameters:
class_name   (fully qualified) name of exception

Definition at line 244 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::addException String   class_name [inline]
 

Add an exception possibly thrown by this method.

Parameters:
class_name   (fully qualified) name of exception

Definition at line 253 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

CodeExceptionGen MethodGen::addExceptionHandler InstructionHandle   start_pc,
InstructionHandle   end_pc,
InstructionHandle   handler_pc,
String   catch_type
[inline]
 

Deprecated:
Use above method

Definition at line 273 of file src/de/fub/bytecode/generic/MethodGen.java.

CodeExceptionGen MethodGen::addExceptionHandler InstructionHandle   start_pc,
InstructionHandle   end_pc,
InstructionHandle   handler_pc,
ObjectType   catch_type
[inline]
 

Add an exception handler, i.e., specify region where a handler is active and an instruction where the actual handling is done.

Parameters:
start_pc   Start of region
end_pc   End of region
handler_pc   Where handling is done
catch_type   fully qualified class name of handled exception or null if any exception is handled
Returns:
new exception handler object

Definition at line 258 of file src/de/fub/bytecode/generic/MethodGen.java.

CodeExceptionGen MethodGen::addExceptionHandler InstructionHandle   start_pc,
InstructionHandle   end_pc,
InstructionHandle   handler_pc,
String   catch_type
[inline]
 

Deprecated:
Use above method

Definition at line 282 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

CodeExceptionGen MethodGen::addExceptionHandler InstructionHandle   start_pc,
InstructionHandle   end_pc,
InstructionHandle   handler_pc,
ObjectType   catch_type
[inline]
 

Add an exception handler, i.e. specify region where a handler is active and an instruction where the actual handling is done.

Parameters:
start_pc   Start of region
end_pc   End of region
handler_pc   Where handling is done
catch_type   fully qualified class name of handled exception or null if any exception is handled
Returns:
new exception handler object

Definition at line 267 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

LineNumberGen MethodGen::addLineNumber InstructionHandle   ih,
int   src_line
[inline]
 

Give an instruction a line number corresponding to the source code line.

Parameters:
ih   instruction to tag
Returns:
new line number object
See also:
LineNumber

Definition at line 287 of file src/de/fub/bytecode/generic/MethodGen.java.

LineNumberGen MethodGen::addLineNumber InstructionHandle   ih,
int   src_line
[inline]
 

Give an instruction a line number corresponding to the source code line.

Parameters:
ih   instruction to tag
Returns:
new line number object
See also:
LineNumber

Definition at line 296 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

LocalVariableGen MethodGen::addLocalVariable String   name,
Type   type,
InstructionHandle   start,
InstructionHandle   end
[inline]
 

Adds a local variable to this method and assigns an index automatically.

Parameters:
name   variable name
type   variable type
start   from where the variable is valid, if this is null, it is valid from the start
end   until where the variable is valid, if this is null, it is valid to the end
Returns:
new local variable object
See also:
LocalVariable

Definition at line 334 of file src/de/fub/bytecode/generic/MethodGen.java.

LocalVariableGen MethodGen::addLocalVariable String   name,
Type   type,
int   slot,
InstructionHandle   start,
InstructionHandle   end
[inline]
 

Adds a local variable to this method.

Parameters:
name   variable name
type   variable type
slot   the index of the local variable, if type is long or double, the next available index is slot+2
start   from where the variable is valid
end   until where the variable is valid
Returns:
new local variable object
See also:
LocalVariable

Definition at line 304 of file src/de/fub/bytecode/generic/MethodGen.java.

LocalVariableGen MethodGen::addLocalVariable String   name,
Type   type,
InstructionHandle   start,
InstructionHandle   end
[inline]
 

Adds a local variable to this method and assigns an index automatically.

Parameters:
name   variable name
type   variable type
start   from where the variable is valid, if this is null, it is valid from the start
end   until where the variable is valid, if this is null, it is valid to the end
Returns:
new local variable object
See also:
LocalVariable

Definition at line 343 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

LocalVariableGen MethodGen::addLocalVariable String   name,
Type   type,
int   slot,
InstructionHandle   start,
InstructionHandle   end
[inline]
 

Adds a local variable to this method.

Parameters:
name   variable name
type   variable type
slot   the index of the local variable, if type is long or double, the next available index is slot+2
start   from where the variable is valid
end   until where the variable is valid
Returns:
new local variable object
See also:
LocalVariable

Definition at line 313 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::addObserver MethodObserver   o [inline]
 

Add observer for this object.

Definition at line 341 of file src/de/fub/bytecode/generic/MethodGen.java.

Attribute [] MethodGen::getAttributes   [inline]
 

Returns:
all attributes of this method.

Reimplemented from FieldGenOrMethodGen.

Definition at line 353 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

String MethodGen::getClassName   [inline]
 

Returns:
class that contains this method

Definition at line 353 of file src/de/fub/bytecode/generic/MethodGen.java.

Attribute [] MethodGen::getCodeAttributes   [inline]
 

Returns:
all attributes of this method.

Definition at line 357 of file src/de/fub/bytecode/generic/MethodGen.java.

Attribute [] MethodGen::getCodeAttributes   [inline]
 

Returns:
all attributes of this method.

Definition at line 362 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

CodeException [] MethodGen::getCodeExceptions   [inline, private]
 

Returns:
code exceptions for `Code' attribute

Definition at line 365 of file src/de/fub/bytecode/generic/MethodGen.java.

CodeException [] MethodGen::getCodeExceptions   [inline, private]
 

Returns:
code exceptions for `Code' attribute

Definition at line 370 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

ExceptionTable MethodGen::getExceptionTable ConstantPoolGen   cp [inline, private]
 

Returns:
`Exceptions' attribute of all the exceptions thrown by this method.

Definition at line 397 of file src/de/fub/bytecode/generic/MethodGen.java.

ExceptionTable MethodGen::getExceptionTable ConstantPoolGen   cp [inline, private]
 

Returns:
`Exceptions' attribute of all the exceptions thrown by this method.

Definition at line 403 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

LineNumberTable MethodGen::getLineNumberTable ConstantPoolGen   cp [inline]
 

Returns:
`LineNumberTable' attribute of all the local variables of this method.

Definition at line 421 of file src/de/fub/bytecode/generic/MethodGen.java.

LineNumberTable MethodGen::getLineNumberTable ConstantPoolGen   cp [inline]
 

Returns:
`LineNumberTable' attribute of all the local variables of this method.

Definition at line 427 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

LocalVariableTable MethodGen::getLocalVariableTable ConstantPoolGen   cp [inline]
 

Returns:
`LocalVariableTable' attribute of all the local variables of this method.

Definition at line 460 of file src/de/fub/bytecode/generic/MethodGen.java.

LocalVariableTable MethodGen::getLocalVariableTable ConstantPoolGen   cp [inline]
 

Returns:
`LocalVariableTable' attribute of all the local variables of this method.

Definition at line 463 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

int MethodGen::getMaxStack ConstantPoolGen   cp,
InstructionList   il,
CodeExceptionGen   et[]
[inline, static]
 

Computes stack usage of an instruction list by performing control flow analysis.

Returns:
maximum stack depth used by method

Definition at line 478 of file src/de/fub/bytecode/generic/MethodGen.java.

int MethodGen::getMaxStack ConstantPoolGen   cp,
InstructionList   il,
CodeExceptionGen   et[]
[inline, static]
 

Computes stack usage of an instruction list by performing control flow analysis.

Returns:
maximum stack depth used by method

Definition at line 481 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

Method MethodGen::getMethod   [inline]
 

Get method object. Never forget to call setMaxStack() or setMaxStack(max), respectively, before calling this method. This method should be called exactly once when the buildup is finished.

Returns:
method object

Definition at line 554 of file src/de/fub/bytecode/generic/MethodGen.java.

Method MethodGen::getMethod   [inline]
 

Get method object. Never forget to call setMaxStack() or setMaxStack(max), respectively, before calling this method. This method should be called exactly once when the buildup is finished.

Returns:
method object

Definition at line 556 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

String MethodGen::getMethodName   [inline]
 

Deprecated:
Use setName()

Definition at line 606 of file src/de/fub/bytecode/generic/MethodGen.java.

String MethodGen::getMethodSignature   [inline]
 

Deprecated:
Use getSignature()

Definition at line 609 of file src/de/fub/bytecode/generic/MethodGen.java.

String MethodGen::getSignature   [inline, virtual]
 

Returns:
signature of method/field.

Reimplemented from FieldGenOrMethodGen.

Definition at line 613 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeAttribute Attribute   a [inline]
 

Remove an attribute.

Reimplemented from FieldGenOrMethodGen.

Definition at line 614 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeCodeAttribute Attribute   a [inline]
 

Remove a code attribute.

Definition at line 619 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeCodeAttribute Attribute   a [inline]
 

Remove a code attribute.

Definition at line 618 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeException String   c [inline]
 

Remove an exception.

Definition at line 623 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeException String   c [inline]
 

Remove an exception.

Definition at line 622 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeExceptionHandler CodeExceptionGen   c [inline]
 

Remove an exception handler.

Definition at line 629 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeExceptionHandler CodeExceptionGen   c [inline]
 

Remove an exception handler.

Definition at line 628 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeExceptionHandlers   [inline]
 

Remove all line numbers.

Definition at line 635 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeExceptions   [inline]
 

Remove all exceptions.

Definition at line 641 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeLineNumber LineNumberGen   l [inline]
 

Remove a line number.

Definition at line 647 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeLineNumber LineNumberGen   l [inline]
 

Remove a line number.

Definition at line 634 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeLineNumbers   [inline]
 

Remove all line numbers.

Definition at line 653 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeLocalVariable LocalVariableGen   l [inline]
 

Remove a local variable, its slot will not be reused, if you do not use addLocalVariable with an explicit index argument.

Definition at line 660 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeLocalVariable LocalVariableGen   l [inline]
 

Remove a local variable, its slot will not be reused, if you do not use addLocalVariable with an explicit `slot' argument.

Definition at line 641 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeLocalVariables   [inline]
 

Remove all local variables.

Definition at line 666 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeNOPs   [inline]
 

Remove all NOPs from the instruction list (if possible) and update every object refering to them, i.e., branch instructions, local variables and exception handlers.

Definition at line 674 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeNOPs   [inline]
 

Remove all NOPs from the instruction list (if possible) and update every object refering to them, i.e. branch instructions, local variables and exception handlers.

Definition at line 649 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::removeObserver MethodObserver   o [inline]
 

Remove observer for this object.

Definition at line 701 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxLocals int   m [inline]
 

Set maximum number of local variables.

Definition at line 741 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxLocals   [inline]
 

Compute maximum number of local variables. May be a little bit to large, but who cares ...

Definition at line 714 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxLocals int   m [inline]
 

Set maximum number of local variables.

Definition at line 706 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxLocals   [inline]
 

Compute maximum number of local variables. May be a little bit to large, but who cares ...

Definition at line 681 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxStack int   m [inline]
 

Set maximum stack size for this method.

Definition at line 755 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxStack   [inline]
 

Computes max. stack size by performing control flow analysis.

Author:
Patrick C. Beard

Definition at line 746 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxStack int   m [inline]
 

Set maximum stack size for this method.

Definition at line 720 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMaxStack   [inline]
 

Computes max. stack size by performing control flow analysis.

Author:
Patrick C. Beard

Definition at line 711 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::setMethodName String   method_name [inline]
 

Deprecated:
Use getName()

Definition at line 758 of file src/de/fub/bytecode/generic/MethodGen.java.

final void MethodGen::sort LocalVariableGen   vars[],
int   l,
int   r
[inline, static, private]
 

Sort local variables by index

Definition at line 763 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::stripAttributes boolean   flag [inline]
 

Do not/Do produce attributes code attributesLineNumberTable and LocalVariableTable, like javac -O

Definition at line 784 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::stripAttributes boolean   flag [inline]
 

Do not/Do produce attributes code attributesLineNumberTable and LocalVariableTable, like javac -O

Definition at line 726 of file lib/jpf/de/fub/bytecode/generic/MethodGen.java.

final String MethodGen::toString   [inline]
 

Return string representation close to declaration format, `public static int main(String[]) throws IOException', e.g.

Returns:
String representation of the method.

Definition at line 791 of file src/de/fub/bytecode/generic/MethodGen.java.

void MethodGen::update   [inline]
 

Call notify() method on all observers. This method is not called automatically whenever the state has changed, but has to be called by the user after he has finished editing the object.

Definition at line 810 of file src/de/fub/bytecode/generic/MethodGen.java.


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