Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.bytecode.Method
ClassType
.
A Method
contain a CodeAttr
object;
the interface for generating bytecode instructions is primarily
in CodeAttr
.
All the methods whose name start with compile_
are
deprecated, and should not be used; use the methods
in CodeAttr
instead.
Method Summary | |
void |
|
void |
|
void | |
void |
|
void |
|
Attribute | |
CodeAttr |
|
ConstantPool | |
ClassType | |
ExceptionsAttr | |
ClassType[] | |
int | |
String |
|
Method |
|
Type[] | |
Type | |
String | |
boolean | |
void |
|
void |
|
boolean | |
void |
|
Scope |
|
Scope | |
void | |
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
CodeAttr |
|
String |
|
public void allocate_local(Variable local)
Deprecated.
Allocate slots for a local variable (or parameter).
- Parameters:
local
- the variable we need to allocate
public void compile_push_this()
public final Attribute getAttributes()
- Specified by:
- getAttributes in interface AttrContainer
public int getModifiers()
public final String getName()
public String getSignature()
public final boolean getStaticFlag()
public void initCode()
Allocate a Code attribute, and prepare to generate code. Most code generators should use the startCode convenience method.
public void init_param_slots()
Deprecated. Use startCode instead
public final boolean isAbstract()
public void push_var(Variable var)
Deprecated.
Comple code to push the contents of a local variable onto the statck.
- Parameters:
var
- The variable whose contents we want to push.
public final boolean reachableHere()
True if control could reach here.
public final void setAttributes(Attribute attributes)
- Specified by:
- setAttributes in interface AttrContainer
public void setExceptions(short[] exn_indices)
public void setModifiers(int modifiers)
public final void setName(String name)
public final void setName(int name_index)
public void setSignature(String signature)
public void setSignature(int signature_index)
public final void setStaticFlag(boolean is_static)
public String toString()