com.gomjabbar.classes.bytecode
Class CodeInfo

java.lang.Object
  |
  +--com.gomjabbar.classes.bytecode.CodeInfo

public class CodeInfo
extends java.lang.Object


Inner Class Summary
static class CodeInfo.ExceptionInfo
           
static class CodeInfo.LineNumberInfo
           
static class CodeInfo.LocalVariableInfo
           
 
Constructor Summary
CodeInfo(PseudoClassFile pcf, byte[] data)
           
 
Method Summary
 void addAttribute(AttributeInfo ai)
           
 void addException(CodeInfo.ExceptionInfo ei)
           
static AttributeInfo createCodeAttribute(PseudoClassFile pcf, byte[] type_index, CodeInfo code)
           
 AttributeInfo[] getAttributes()
           
 int getAttributesCount()
           
 byte[] getCode()
           
 CodeInfo.ExceptionInfo[] getExceptions()
           
 int getExceptionsCount()
           
 InstructionInfo getInstruction(int i)
           
 int getInstructionsCount()
           
 CodeInfo.LineNumberInfo getLineNumberInfo()
           
 CodeInfo.LocalVariableInfo getLocalVariableInfo()
           
 int getMaxLocals()
           
 int getMaxStack()
           
 PseudoClassFile getParent()
           
 byte[] toBytes()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeInfo

public CodeInfo(PseudoClassFile pcf,
                byte[] data)
Method Detail

getInstructionsCount

public int getInstructionsCount()

getInstruction

public InstructionInfo getInstruction(int i)

createCodeAttribute

public static AttributeInfo createCodeAttribute(PseudoClassFile pcf,
                                                byte[] type_index,
                                                CodeInfo code)

addAttribute

public void addAttribute(AttributeInfo ai)

addException

public void addException(CodeInfo.ExceptionInfo ei)

toBytes

public byte[] toBytes()

getMaxStack

public int getMaxStack()

getMaxLocals

public int getMaxLocals()

getCode

public byte[] getCode()

getExceptionsCount

public int getExceptionsCount()

getExceptions

public CodeInfo.ExceptionInfo[] getExceptions()

getAttributesCount

public int getAttributesCount()

getAttributes

public AttributeInfo[] getAttributes()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLineNumberInfo

public CodeInfo.LineNumberInfo getLineNumberInfo()

getParent

public PseudoClassFile getParent()

getLocalVariableInfo

public CodeInfo.LocalVariableInfo getLocalVariableInfo()