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 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- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationValue(ConstPool constPool, String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetName()abstract chargetTag()voidwrite(ByteArrayDataOutputStream stream)abstract voidwriteData(ByteArrayDataOutputStream stream)
-
-
-
Method Detail
-
write
public void write(ByteArrayDataOutputStream stream) throws IOException
- Specified by:
writein interfaceWritableEntry- Throws:
IOException
-
writeData
public abstract void writeData(ByteArrayDataOutputStream stream) throws IOException
- Throws:
IOException
-
getName
public String getName()
-
getTag
public abstract char getTag()
-
-