org.aspectj.apache.bcel.classfile
Class Attribute
java.lang.Object
org.aspectj.apache.bcel.classfile.Attribute
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Node
- Direct Known Subclasses:
- AnnotationDefault, Code, ConstantValue, Deprecated, EnclosingMethod, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, LocalVariableTypeTable, RuntimeAnnos, RuntimeParamAnnos, Signature, SourceFile, StackMap, Synthetic, Unknown
public abstract class Attribute
- extends java.lang.Object
- implements java.lang.Cloneable, Node, java.io.Serializable
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NoAttributes
public static final Attribute[] NoAttributes
dump
public void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Throws:
java.io.IOException
readAttribute
public static final Attribute readAttribute(java.io.DataInputStream file,
ConstantPool cpool)
throws java.io.IOException
- Throws:
java.io.IOException
getName
public java.lang.String getName()
getLength
public final int getLength()
getNameIndex
public final int getNameIndex()
getTag
public final byte getTag()
getConstantPool
public final ConstantPool getConstantPool()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
accept
public abstract void accept(ClassVisitor v)
- Specified by:
accept
in interface Node