-
- All Implemented Interfaces:
-
org.gjt.jclasslib.structures.AttributeContainer
public final class CodeAttribute extends AttributeInfo implements AttributeContainer
Describes a Code attribute structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCodeAttribute.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegermaxStackprivate IntegermaxLocalsprivate ByteArraycodeprivate Array<ExceptionTableEntry>exceptionTableprivate Array<AttributeInfo>attributesprivate IntegerattributeNameIndexprivate final Stringnameprivate final IntegertotalAttributesLength
-
Constructor Summary
Constructors Constructor Description CodeAttribute(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetMaxStack()Maximum stack depth of this code attribute. final UnitsetMaxStack(Integer maxStack)Maximum stack depth of this code attribute. final IntegergetMaxLocals()Maximum number of local variables of this code attribute. final UnitsetMaxLocals(Integer maxLocals)Maximum number of local variables of this code attribute. final ByteArraygetCode()Code of this code attribute as an array of bytes. final UnitsetCode(ByteArray code)Code of this code attribute as an array of bytes. final Array<ExceptionTableEntry>getExceptionTable()Exception table of this code attribute. final UnitsetExceptionTable(Array<ExceptionTableEntry> exceptionTable)Exception table of this code attribute. Array<AttributeInfo>getAttributes()Attributes of this structure. UnitsetAttributes(Array<AttributeInfo> attributes)Attributes of this structure. IntegergetAttributeLength()Get the length of this attribute in bytes. -
Methods inherited from class org.gjt.jclasslib.structures.AttributeInfo
getAttributeNameIndex, getName, setAttributeNameIndex -
Methods inherited from class org.gjt.jclasslib.structures.AttributeContainer
findAttribute, getTotalAttributesLength, readAttributes, writeAttributes -
Methods inherited from class org.gjt.jclasslib.structures.Structure
read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CodeAttribute
CodeAttribute(ClassFile classFile)
-
-
Method Detail
-
getMaxStack
final Integer getMaxStack()
Maximum stack depth of this code attribute.
-
setMaxStack
final Unit setMaxStack(Integer maxStack)
Maximum stack depth of this code attribute.
-
getMaxLocals
final Integer getMaxLocals()
Maximum number of local variables of this code attribute.
-
setMaxLocals
final Unit setMaxLocals(Integer maxLocals)
Maximum number of local variables of this code attribute.
-
getExceptionTable
final Array<ExceptionTableEntry> getExceptionTable()
Exception table of this code attribute.
-
setExceptionTable
final Unit setExceptionTable(Array<ExceptionTableEntry> exceptionTable)
Exception table of this code attribute.
-
getAttributes
Array<AttributeInfo> getAttributes()
Attributes of this structure.
-
setAttributes
Unit setAttributes(Array<AttributeInfo> attributes)
Attributes of this structure.
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-