|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute
org.aspectj.org.eclipse.jdt.internal.core.util.CodeAttribute
public class CodeAttribute
Default implementation of ICodeAttribute.
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute |
|---|
NO_ATTRIBUTES |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileAttribute |
|---|
getAttributeLength, getAttributeName, getAttributeNameIndex |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct |
|---|
doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.util.IClassFileAttribute |
|---|
getAttributeLength, getAttributeName, getAttributeNameIndex |
| Method Detail |
|---|
public IClassFileAttribute[] getAttributes()
ICodeAttribute
getAttributes in interface ICodeAttributeICodeAttribute.getAttributes()public int getAttributesCount()
ICodeAttribute
getAttributesCount in interface ICodeAttributeICodeAttribute.getAttributesCount()public byte[] getBytecodes()
ICodeAttribute
getBytecodes in interface ICodeAttributeICodeAttribute.getBytecodes()public long getCodeLength()
ICodeAttribute
getCodeLength in interface ICodeAttributeICodeAttribute.getCodeLength()public IExceptionTableEntry[] getExceptionTable()
ICodeAttribute
getExceptionTable in interface ICodeAttributeICodeAttribute.getExceptionTable()public int getExceptionTableLength()
ICodeAttribute
getExceptionTableLength in interface ICodeAttributeICodeAttribute.getExceptionTableLength()public ILineNumberAttribute getLineNumberAttribute()
ICodeAttribute
getLineNumberAttribute in interface ICodeAttributeICodeAttribute.getLineNumberAttribute()public ILocalVariableAttribute getLocalVariableAttribute()
ICodeAttribute
getLocalVariableAttribute in interface ICodeAttributeICodeAttribute.getLocalVariableAttribute()public int getMaxLocals()
ICodeAttribute
getMaxLocals in interface ICodeAttributeICodeAttribute.getMaxLocals()public int getMaxStack()
ICodeAttribute
getMaxStack in interface ICodeAttributeICodeAttribute.getMaxStack()
public void traverse(IBytecodeVisitor visitor)
throws ClassFormatException
ICodeAttribute
traverse in interface ICodeAttributevisitor - The visitor to use to walk the opcodes.
ClassFormatException - Exception thrown if the opcodes contain invalid bytesICodeAttribute.traverse(IBytecodeVisitor visitor)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||