org.eclipse.jdt.internal.core.util
Class CodeAttribute

java.lang.Object
  extended by org.eclipse.jdt.internal.core.util.ClassFileStruct
      extended by org.eclipse.jdt.internal.core.util.ClassFileAttribute
          extended by org.eclipse.jdt.internal.core.util.CodeAttribute

public class CodeAttribute
extends ClassFileAttribute

Default implementation of ICodeAttribute.


Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.core.util.ClassFileAttribute
NO_ATTRIBUTES
 
Method Summary
 IClassFileAttribute[] getAttributes()
           
 int getAttributesCount()
           
 byte[] getBytecodes()
           
 long getCodeLength()
           
 IExceptionTableEntry[] getExceptionTable()
           
 int getExceptionTableLength()
           
 ILineNumberAttribute getLineNumberAttribute()
           
 ILocalVariableAttribute getLocalVariableAttribute()
           
 int getMaxLocals()
           
 int getMaxStack()
           
 void traverse(IBytecodeVisitor visitor)
           
 
Methods inherited from class org.eclipse.jdt.internal.core.util.ClassFileAttribute
getAttributeLength, getAttributeName, getAttributeNameIndex
 
Methods inherited from class 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
 

Method Detail

getAttributes

public IClassFileAttribute[] getAttributes()
See Also:
ICodeAttribute#getAttributes()

getAttributesCount

public int getAttributesCount()
See Also:
ICodeAttribute#getAttributesCount()

getBytecodes

public byte[] getBytecodes()
See Also:
ICodeAttribute#getBytecodes()

getCodeLength

public long getCodeLength()
See Also:
ICodeAttribute#getCodeLength()

getExceptionTable

public IExceptionTableEntry[] getExceptionTable()
See Also:
ICodeAttribute#getExceptionTable()

getExceptionTableLength

public int getExceptionTableLength()
See Also:
ICodeAttribute#getExceptionTableLength()

getLineNumberAttribute

public ILineNumberAttribute getLineNumberAttribute()
See Also:
ICodeAttribute#getLineNumberAttribute()

getLocalVariableAttribute

public ILocalVariableAttribute getLocalVariableAttribute()
See Also:
ICodeAttribute#getLocalVariableAttribute()

getMaxLocals

public int getMaxLocals()
See Also:
ICodeAttribute#getMaxLocals()

getMaxStack

public int getMaxStack()
See Also:
ICodeAttribute#getMaxStack()

traverse

public void traverse(IBytecodeVisitor visitor)
              throws ClassFormatException
Throws:
ClassFormatException
See Also:
ICodeAttribute#traverse(IBytecodeVisitor visitor)