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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConstantPoolprotected intprotected intstatic final Attribute[]protected byte -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAttribute(byte tag, int nameIndex, int length, ConstantPool cpool) -
Method Summary
Modifier and TypeMethodDescriptionabstract voidvoiddump(DataOutputStream file) final ConstantPoolfinal intgetName()final intfinal bytegetTag()static final AttributereadAttribute(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
-