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 |
protected byte |
tag |
Modifier | Constructor and Description |
---|---|
protected |
Attribute(byte tag,
int name_index,
int length,
ConstantPool constant_pool) |
Modifier and Type | Method and Description |
---|---|
Attribute |
clone()
Use copy() if you want to have a deep copy(), i.e., with all references
copied correctly.
|
abstract Attribute |
copy(ConstantPool _constant_pool) |
String |
getName() |
byte |
getTag() |
static Attribute |
readAttribute(DataInputStream file,
ConstantPool constant_pool) |
String |
toString() |
protected int name_index
protected int length
protected byte tag
protected ConstantPool constant_pool
protected Attribute(byte tag, 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()
public final byte getTag()
public Attribute clone()
public abstract Attribute copy(ConstantPool _constant_pool)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.