Class CodeAttribute

java.lang.Object
org.vesalainen.bcc.AttributeInfo
org.vesalainen.bcc.CodeAttribute
All Implemented Interfaces:
Writable

public class CodeAttribute extends AttributeInfo
  • Field Details

    • max_stack

      private int max_stack
    • max_locals

      private int max_locals
    • code

      private byte[] code
    • exception_table

      private ExceptionTable[] exception_table
    • attributes

      private List<AttributeInfo> attributes
  • Constructor Details

  • Method Details

    • addLocalVariables

      public void addLocalVariables(List<? extends VariableElement> localVariables)
    • addLineNumberTable

      public void addLineNumberTable(LineNumberTable lnt)
    • write

      public void write(DataOutput out) throws IOException
      Specified by:
      write in interface Writable
      Overrides:
      write in class AttributeInfo
      Throws:
      IOException
    • getCode

      public byte[] getCode()
    • setCode

      public void setCode(byte[] code, ExceptionTable... exception_table)
    • getMax_locals

      public int getMax_locals()
    • setMax_locals

      public void setMax_locals(int max_locals)
    • getMax_stack

      public int getMax_stack()
    • setMax_stack

      public void setMax_stack(int max_stack)
    • getAttributes

      public List<? extends AttributeInfo> getAttributes()
    • attributeLength

      private int attributeLength()