Class Attribute
- java.lang.Object
-
- org.jboss.classfilewriter.attributes.Attribute
-
- All Implemented Interfaces:
WritableEntry
- Direct Known Subclasses:
AnnotationsAttribute
,CodeAttribute
,ExceptionsAttribute
,ParameterAnnotationsAttribute
,SignatureAttribute
,StackMapTableAttribute
public abstract class Attribute extends java.lang.Object implements WritableEntry
Represents an attribute in a class file
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
void
write(ByteArrayDataOutputStream stream)
abstract void
writeData(ByteArrayDataOutputStream stream)
-
-
-
Field Detail
-
name
private final java.lang.String name
-
nameIndex
private final short nameIndex
-
constPool
protected final ConstPool constPool
-
-
Constructor Detail
-
Attribute
public Attribute(java.lang.String name, ConstPool constPool)
-
-
Method Detail
-
write
public void write(ByteArrayDataOutputStream stream) throws java.io.IOException
- Specified by:
write
in interfaceWritableEntry
- Throws:
java.io.IOException
-
writeData
public abstract void writeData(ByteArrayDataOutputStream stream) throws java.io.IOException
- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
-
-