Class Attribute
- java.lang.Object
-
- org.aspectj.apache.bcel.classfile.Attribute
-
- All Implemented Interfaces:
Serializable,Cloneable,Node
- Direct Known Subclasses:
AnnotationDefault,BootstrapMethods,Code,ConstantValue,Deprecated,EnclosingMethod,ExceptionTable,InnerClasses,LineNumberTable,LocalVariableTable,LocalVariableTypeTable,MethodParameters,Module,ModuleMainClass,ModulePackages,NestHost,NestMembers,RuntimeAnnos,RuntimeParamAnnos,RuntimeTypeAnnos,Signature,SourceFile,StackMap,Synthetic,Unknown
public abstract class Attribute extends Object implements Cloneable, Node, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ConstantPoolcpoolprotected intlengthprotected intnameIndexstatic Attribute[]NoAttributesprotected bytetag
-
Constructor Summary
Constructors Modifier Constructor Description protectedAttribute(byte tag, int nameIndex, int length, ConstantPool cpool)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaccept(ClassVisitor v)voiddump(DataOutputStream file)ConstantPoolgetConstantPool()intgetLength()StringgetName()intgetNameIndex()bytegetTag()static AttributereadAttribute(DataInputStream file, ConstantPool cpool)StringtoString()
-
-
-
Field Detail
-
NoAttributes
public static final Attribute[] NoAttributes
-
tag
protected byte tag
-
nameIndex
protected int nameIndex
-
length
protected int length
-
cpool
protected ConstantPool cpool
-
-
Constructor Detail
-
Attribute
protected Attribute(byte tag, int nameIndex, int length, ConstantPool cpool)
-
-
Method Detail
-
dump
public void dump(DataOutputStream file) throws IOException
- Throws:
IOException
-
readAttribute
public static final Attribute readAttribute(DataInputStream file, ConstantPool cpool) throws IOException
- Throws:
IOException
-
getName
public String getName()
-
getLength
public final int getLength()
-
getNameIndex
public final int getNameIndex()
-
getTag
public final byte getTag()
-
getConstantPool
public final ConstantPool getConstantPool()
-
accept
public abstract void accept(ClassVisitor v)
-
-