public abstract class Attribute
extends java.lang.Object
implements java.lang.Cloneable, java.io.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 |
---|---|
java.lang.Object |
clone()
Use copy() if you want to have a deep copy(), i.e., with all references
copied correctly.
|
abstract Attribute |
copy(ConstantPool _constant_pool) |
java.lang.String |
getName() |
byte |
getTag() |
static Attribute |
readAttribute(java.io.DataInputStream file,
ConstantPool constant_pool) |
java.lang.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(java.io.DataInputStream file, ConstantPool constant_pool) throws java.io.IOException, ClassFormatException
java.io.IOException
ClassFormatException
public java.lang.String getName()
public final byte getTag()
public java.lang.Object clone()
clone
in class java.lang.Object
public abstract Attribute copy(ConstantPool _constant_pool)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.