Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public abstract Class Attribute

extends Object
implements Cloneable, Node, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.aspectj.apache.bcel.classfile.Node, java.lang.Cloneable
Known Direct Subclasses
org.aspectj.apache.bcel.classfile.BootstrapMethods, org.aspectj.apache.bcel.classfile.Code, org.aspectj.apache.bcel.classfile.ConstantValue, org.aspectj.apache.bcel.classfile.Deprecated, org.aspectj.apache.bcel.classfile.EnclosingMethod, org.aspectj.apache.bcel.classfile.ExceptionTable, org.aspectj.apache.bcel.classfile.InnerClasses, org.aspectj.apache.bcel.classfile.LineNumberTable, org.aspectj.apache.bcel.classfile.LocalVariableTable, org.aspectj.apache.bcel.classfile.LocalVariableTypeTable, org.aspectj.apache.bcel.classfile.MethodParameters, org.aspectj.apache.bcel.classfile.Module, org.aspectj.apache.bcel.classfile.ModuleMainClass, org.aspectj.apache.bcel.classfile.ModulePackages, org.aspectj.apache.bcel.classfile.NestHost, org.aspectj.apache.bcel.classfile.NestMembers, org.aspectj.apache.bcel.classfile.Signature, org.aspectj.apache.bcel.classfile.SourceFile, org.aspectj.apache.bcel.classfile.StackMap, org.aspectj.apache.bcel.classfile.Synthetic, org.aspectj.apache.bcel.classfile.Unknown, org.aspectj.apache.bcel.classfile.annotation.RuntimeAnnos, org.aspectj.apache.bcel.classfile.annotation.RuntimeParamAnnos, org.aspectj.apache.bcel.classfile.annotation.RuntimeTypeAnnos, org.aspectj.apache.bcel.classfile.AnnotationDefault
Imports
java.io.DataInputStream, .DataOutputStream, .IOException, .Serializable, org.aspectj.apache.bcel.Constants, org.aspectj.apache.bcel.classfile.annotation.RuntimeInvisAnnos, .RuntimeInvisParamAnnos, .RuntimeInvisTypeAnnos, .RuntimeVisAnnos, .RuntimeVisParamAnnos, .RuntimeVisTypeAnnos

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.
Author
M. Dahm
Version
$Id: Attribute.java,v 1.9 2009/12/09 18:01:31 aclement Exp $
See Also
ConstantValue, SourceFile, Code, Unknown, ExceptionTable, LineNumberTable, LocalVariableTable, InnerClasses, Synthetic, Deprecated, Signature

Field Summary

Modifier and TypeField and Description
protected ConstantPool
protected int
protected int
public static final Attribute[]
protected byte

Constructor Summary

AccessConstructor and Description
protected
Attribute(byte tag, int nameIndex, int length, ConstantPool cpool)

Method Summary

Modifier and TypeMethod and Description
public abstract void
public void
public final ConstantPool
public final int
public String
public final int
public final byte
public static final Attribute
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cpoolback to summary
protected ConstantPool cpool
lengthback to summary
protected int length
nameIndexback to summary
protected int nameIndex
NoAttributesback to summary
public static final Attribute[] NoAttributes
tagback to summary
protected byte tag

Constructor Detail

Attributeback to summary
protected Attribute(byte tag, int nameIndex, int length, ConstantPool cpool)

Method Detail

acceptback to summary
public abstract void accept(ClassVisitor v)

Redeclares org.aspectj.apache.bcel.classfile.Node.accept.

Annotations
@Override
dumpback to summary
public void dump(DataOutputStream file) throws IOException
getConstantPoolback to summary
public final ConstantPool getConstantPool()
getLengthback to summary
public final int getLength()
getNameback to summary
public String getName()
getNameIndexback to summary
public final int getNameIndex()
getTagback to summary
public final byte getTag()
readAttributeback to summary
public static final Attribute readAttribute(DataInputStream file, ConstantPool cpool) throws IOException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override