com.sun.tools.classfile
Class Code_attribute
java.lang.Object
com.sun.tools.classfile.Attribute
com.sun.tools.classfile.Code_attribute
public class Code_attribute
- extends Attribute
See JVMS3, section 4.8.3.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
| Fields inherited from class com.sun.tools.classfile.Attribute |
AnnotationDefault, attribute_length, attribute_name_index, CharacterRangeTable, Code, CompilationID, ConstantValue, Deprecated, EnclosingMethod, Exceptions, InnerClasses, LineNumberTable, LocalVariableTable, LocalVariableTypeTable, Module, ModuleExportTable, ModuleMemberTable, RuntimeInvisibleAnnotations, RuntimeInvisibleParameterAnnotations, RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations, Signature, SourceDebugExtension, SourceFile, SourceID, StackMap, StackMapTable, Synthetic |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
max_stack
public final int max_stack
max_locals
public final int max_locals
code_length
public final int code_length
code
public final byte[] code
exception_table_langth
public final int exception_table_langth
exception_table
public final Code_attribute.Exception_data[] exception_table
attributes
public final Attributes attributes
Code_attribute
Code_attribute(ClassReader cr,
int name_index,
int length)
throws java.io.IOException,
ConstantPoolException
- Throws:
java.io.IOException
ConstantPoolException
getByte
public int getByte(int offset)
throws Code_attribute.InvalidIndex
- Throws:
Code_attribute.InvalidIndex
getUnsignedByte
public int getUnsignedByte(int offset)
throws Code_attribute.InvalidIndex
- Throws:
Code_attribute.InvalidIndex
getShort
public int getShort(int offset)
throws Code_attribute.InvalidIndex
- Throws:
Code_attribute.InvalidIndex
getUnsignedShort
public int getUnsignedShort(int offset)
throws Code_attribute.InvalidIndex
- Throws:
Code_attribute.InvalidIndex
getInt
public int getInt(int offset)
throws Code_attribute.InvalidIndex
- Throws:
Code_attribute.InvalidIndex
accept
public <R,D> R accept(Attribute.Visitor<R,D> visitor,
D data)
- Specified by:
accept in class Attribute