com.jeffpalm.basic.bytecode.base
Class CodeAttribute
java.lang.Object
com.jeffpalm.basic.bytecode.base.CodeAttribute
- All Implemented Interfaces:
- IAttribute, ICodeAttribute, ICodeGenerator, IDumpable
public final class CodeAttribute
- extends java.lang.Object
- implements ICodeAttribute
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.util.IDumpable |
dump |
CodeAttribute
public CodeAttribute(IConstantPool pool)
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