public interface ICodeAttribute extends IClassFileAttribute
Modifier and Type | Method and Description |
---|---|
IClassFileAttribute[] |
getAttributes()
Answer back the collection of all attributes of the field info.
|
int |
getAttributesCount()
Answer back the attribute number of the code attribute.
|
byte[] |
getBytecodes()
Answer back the array of bytes, which represents all the opcodes as described
in the JVM specifications.
|
long |
getCodeLength()
Answer back the length of the bytecode contents.
|
IExceptionTableEntry[] |
getExceptionTable()
Answer back the array of exception entries, if they are present.
|
int |
getExceptionTableLength()
Answer back the exception table length of the code attribute.
|
ILineNumberAttribute |
getLineNumberAttribute()
Answer back the line number attribute, if it exists, null otherwise.
|
ILocalVariableAttribute |
getLocalVariableAttribute()
Answer back the local variable attribute, if it exists, null otherwise.
|
int |
getMaxLocals()
Answer back the max locals value of the code attribute.
|
int |
getMaxStack()
Answer back the max stack value of the code attribute.
|
void |
traverse(IBytecodeVisitor visitor)
Define a Java opcodes walker.
|
getAttributeLength, getAttributeName, getAttributeNameIndex
int getMaxLocals()
int getMaxStack()
ILineNumberAttribute getLineNumberAttribute()
ILocalVariableAttribute getLocalVariableAttribute()
IExceptionTableEntry[] getExceptionTable()
byte[] getBytecodes()
long getCodeLength()
int getAttributesCount()
IClassFileAttribute[] getAttributes()
int getExceptionTableLength()
void traverse(IBytecodeVisitor visitor) throws ClassFormatException
visitor
- The visitor to use to walk the opcodes.ClassFormatException
- Exception thrown if the opcodes contain invalid bytes
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.