public abstract class Attribute extends Object implements Cloneable, Serializable
ConstantValue
,
SourceFile
,
Code
,
Unknown
,
ExceptionTable
,
LineNumberTable
,
LocalVariableTable
,
InnerClasses
,
Synthetic
,
Deprecated
,
Signature
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected ConstantPool |
constant_pool |
protected int |
length |
protected int |
name_index |
Modifier | Constructor and Description |
---|---|
protected |
Attribute(int name_index,
int length,
ConstantPool constant_pool) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Use copy() if you want to have a deep copy(), i.e., with all references
copied correctly.
|
String |
getName() |
static Attribute |
readAttribute(DataInputStream file,
ConstantPool constant_pool) |
protected int name_index
protected int length
protected ConstantPool constant_pool
protected Attribute(int name_index, int length, ConstantPool constant_pool)
public static final Attribute readAttribute(DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatException
IOException
ClassFormatException
public String getName()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.