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
Abstract super class for Attribute objects. Currently the ConstantValue, SourceFile, Code,
Exceptiontable, LineNumberTable, LocalVariableTable, InnerClasses and Synthetic
attributes are supported. The Unknown attribute stands for non-standard-attributes.
- Version:
- $Id: Attribute.java,v 1.9 2009/12/09 18:01:31 aclement Exp $
- Author:
- M. Dahm
- See Also:
ConstantValue
,SourceFile
,Code
,Unknown
,ExceptionTable
,LineNumberTable
,LocalVariableTable
,InnerClasses
,Synthetic
,Deprecated
,Signature
, Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionprotected ConstantPool
protected int
protected int
static Attribute[]
protected byte
-
Constructor Summary
ModifierConstructorDescriptionprotected
Attribute(byte tag, int nameIndex, int length, ConstantPool cpool)
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
accept(ClassVisitor v)
void
dump(DataOutputStream file)
int
getName()
int
byte
getTag()
static Attribute
readAttribute(DataInputStream file, ConstantPool cpool)
toString()
-
Field Details
-
NoAttributes
-
tag
protected byte tag -
nameIndex
protected int nameIndex -
length
protected int length -
cpool
-
-
Constructor Details
-
Attribute
-
-
Method Details
-
dump
- Throws:
IOException
-
readAttribute
public static final Attribute readAttribute(DataInputStream file, ConstantPool cpool) throws IOException- Throws:
IOException
-
getName
-
getLength
public final int getLength() -
getNameIndex
public final int getNameIndex() -
getTag
public final byte getTag() -
getConstantPool
-
toString
-
accept
-