com.jeffpalm.basic.bytecode.base
Class CodeAttribute

java.lang.Object
  extended by com.jeffpalm.basic.bytecode.base.CodeAttribute
All Implemented Interfaces:
IAttribute, ICodeAttribute, ICodeGenerator, IDumpable

public final class CodeAttribute
extends java.lang.Object
implements ICodeAttribute


Constructor Summary
CodeAttribute(IConstantPool pool)
           
 
Method Summary
 IAttribute attributes(int i)
           
 int attributesCount()
           
 ICode code()
           
 int codeLength()
           
 void dump(IAppendable out)
           
protected  void dumpRest(IAppendable out)
           
 IExceptionTableEntry exceptionTable(int i)
           
 int exceptionTableLength()
           
 void gen(ICodeStream code)
           
protected  void genRest(ICodeStream code)
           
 int length()
           
 int maxLocals()
           
 int maxStack()
           
 java.lang.String name()
           
 IConstantPool pool()
           
 void setCode(ICode code)
           
 void setMaxLocals(int maxLocals)
           
 void setMaxStack(int maxStack)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jeffpalm.basic.bytecode.IAttribute
name, pool
 
Methods inherited from interface com.jeffpalm.basic.util.IDumpable
dump
 
Methods inherited from interface com.jeffpalm.basic.bytecode.ICodeGenerator
gen
 

Constructor Detail

CodeAttribute

public CodeAttribute(IConstantPool pool)
Method Detail

length

public int length()
Specified by:
length in interface IAttribute

maxStack

public int maxStack()
Specified by:
maxStack in interface ICodeAttribute

setMaxStack

public void setMaxStack(int maxStack)

maxLocals

public int maxLocals()
Specified by:
maxLocals in interface ICodeAttribute

setMaxLocals

public void setMaxLocals(int maxLocals)

codeLength

public int codeLength()
Specified by:
codeLength in interface ICodeAttribute

setCode

public void setCode(ICode code)

code

public ICode code()
Specified by:
code in interface ICodeAttribute

exceptionTableLength

public int exceptionTableLength()
Specified by:
exceptionTableLength in interface ICodeAttribute

exceptionTable

public IExceptionTableEntry exceptionTable(int i)
Specified by:
exceptionTable in interface ICodeAttribute

attributesCount

public int attributesCount()
Specified by:
attributesCount in interface ICodeAttribute

attributes

public IAttribute attributes(int i)
Specified by:
attributes in interface ICodeAttribute

genRest

protected void genRest(ICodeStream code)
                throws java.io.IOException
Throws:
java.io.IOException

dumpRest

protected void dumpRest(IAppendable out)

pool

public final IConstantPool pool()
Specified by:
pool in interface IAttribute

name

public final java.lang.String name()
Specified by:
name in interface IAttribute

gen

public final void gen(ICodeStream code)
               throws java.io.IOException
Specified by:
gen in interface ICodeGenerator
Throws:
java.io.IOException

dump

public final void dump(IAppendable out)
Specified by:
dump in interface IDumpable