jas
Class CodeAttr

java.lang.Object
  extended byjas.CodeAttr

public class CodeAttr
extends Object


Constructor Summary
CodeAttr()
          Create a new bag.
 
Method Summary
 void addGenericAttr(GenericAttr g)
          Add a generic attribute to the method.
 void addInsn(Insn insn)
          Append a new Insn to this code.
 void setCatchtable(Catchtable ctb)
          Set the catchtable for this code
 void setLineTable(LineTableAttr ltab)
          Set the line number table for this method
 void setLocalVarTable(LocalVarTableAttr lvar)
          Set the local variable information for this method
 void setStackSize(short stack_size)
           
 void setVarSize(short num_vars)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeAttr

public CodeAttr()
Create a new bag. Add instructions with the addInsn() method, set the catch table with the setCatchTable() method.

See Also:
Insn, Catchtable, ClassEnv.addMethod(short, java.lang.String, java.lang.String, jas.CodeAttr, jas.ExceptAttr)
Method Detail

setCatchtable

public void setCatchtable(Catchtable ctb)
Set the catchtable for this code


setLineTable

public void setLineTable(LineTableAttr ltab)
Set the line number table for this method


setLocalVarTable

public void setLocalVarTable(LocalVarTableAttr lvar)
Set the local variable information for this method


addGenericAttr

public void addGenericAttr(GenericAttr g)
Add a generic attribute to the method. A generic attribute contains a stream of uninterpreted bytes which is ignored by the VM (as long as its name doesn't conflict with other names for attributes that are understood by the VM)


addInsn

public void addInsn(Insn insn)
Append a new Insn to this code. Insn's are sequentially stored, in the order in which this method is called. You can't reorder code fragments after you've added it here.


setStackSize

public void setStackSize(short stack_size)

setVarSize

public void setVarSize(short num_vars)

toString

public String toString()


Copyright © 2004 Jonathan Meyer, USA All rights reserved.