Class CodeAttribute
- java.lang.Object
-
- com.strobel.assembler.ir.attributes.SourceAttribute
-
- com.strobel.assembler.ir.attributes.CodeAttribute
-
public final class CodeAttribute extends SourceAttribute
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SourceAttribute>
_attributesView
private Buffer
_code
private int
_codeOffset
private int
_codeSize
private java.util.List<ExceptionTableEntry>
_exceptionTableEntriesView
private int
_maxLocals
private int
_maxStack
-
Constructor Summary
Constructors Constructor Description CodeAttribute(int size, int codeOffset, int codeSize, int maxStack, int maxLocals, ExceptionTableEntry[] exceptionTableEntries, SourceAttribute[] attributes)
CodeAttribute(int size, int maxStack, int maxLocals, int codeOffset, int codeSize, Buffer buffer, ExceptionTableEntry[] exceptionTableEntries, SourceAttribute[] attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<SourceAttribute>
getAttributes()
Buffer
getCode()
int
getCodeOffset()
int
getCodeSize()
java.util.List<ExceptionTableEntry>
getExceptionTableEntries()
int
getMaxLocals()
int
getMaxStack()
boolean
hasCode()
-
Methods inherited from class com.strobel.assembler.ir.attributes.SourceAttribute
create, find, find, getLength, getName, readAttribute, readAttributes
-
-
-
-
Field Detail
-
_maxStack
private final int _maxStack
-
_maxLocals
private final int _maxLocals
-
_codeSize
private final int _codeSize
-
_codeOffset
private final int _codeOffset
-
_code
private final Buffer _code
-
_exceptionTableEntriesView
private final java.util.List<ExceptionTableEntry> _exceptionTableEntriesView
-
_attributesView
private final java.util.List<SourceAttribute> _attributesView
-
-
Constructor Detail
-
CodeAttribute
public CodeAttribute(int size, int maxStack, int maxLocals, int codeOffset, int codeSize, Buffer buffer, ExceptionTableEntry[] exceptionTableEntries, SourceAttribute[] attributes)
-
CodeAttribute
public CodeAttribute(int size, int codeOffset, int codeSize, int maxStack, int maxLocals, ExceptionTableEntry[] exceptionTableEntries, SourceAttribute[] attributes)
-
-
Method Detail
-
getMaxStack
public int getMaxStack()
-
getMaxLocals
public int getMaxLocals()
-
getCodeSize
public int getCodeSize()
-
hasCode
public boolean hasCode()
-
getCode
public Buffer getCode()
-
getExceptionTableEntries
public java.util.List<ExceptionTableEntry> getExceptionTableEntries()
-
getAttributes
public java.util.List<SourceAttribute> getAttributes()
-
getCodeOffset
public int getCodeOffset()
-
-