    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class jas.CodeAttr

    java.lang.Object
       |
       +----jas.CodeAttr

public class CodeAttr
extends Object

##

CodeAttr()
  Create a new bag.

##

addGenericAttr(GenericAttr)
  Add a generic attribute to the method.
addInsn(Insn)
  Append a new Insn to this code.
setCatchtable(Catchtable)
  Set the catchtable for this code
setLineTable(LineTableAttr)
  Set the line number table for this method
setLocalVarTable(LocalVarTableAttr)
  Set the local variable information for this method
setStackSize(short)
setVarSize(short)
toString()

##

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, addMethod

##

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

Overrides:
  toString in class Object

    All Packages  Class Hierarchy  This Package  Previous  Next  Index