Class AnnotationValue
- java.lang.Object
-
- org.jboss.classfilewriter.annotations.AnnotationValue
-
- All Implemented Interfaces:
WritableEntry
- Direct Known Subclasses:
AnnotationAnnotationValue
,ArrayAnnotationValue
,BooleanAnnotationValue
,ByteAnnotationValue
,CharAnnotationValue
,ClassAnnotationValue
,DoubleAnnotationValue
,EnumAnnotationValue
,FloatAnnotationValue
,IntAnnotationValue
,LongAnnotationValue
,ShortAnnotationValue
,StringAnnotationValue
public abstract class AnnotationValue extends java.lang.Object implements WritableEntry
Represents an annotation name/value pair. This class can also represent a value an an array valued annotation instance, if the name is null
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationValue(ConstPool constPool, java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
abstract char
getTag()
void
write(ByteArrayDataOutputStream stream)
abstract void
writeData(ByteArrayDataOutputStream stream)
-
-
-
Constructor Detail
-
AnnotationValue
protected AnnotationValue(ConstPool constPool, java.lang.String name)
-
-
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()
-
getTag
public abstract char getTag()
-
-