org.ow2.asmdex
Class AnnotationWriterDefaultAnnotation

java.lang.Object
  extended by org.ow2.asmdex.AnnotationVisitor
      extended by org.ow2.asmdex.AnnotationWriter
          extended by org.ow2.asmdex.AnnotationWriterDefaultAnnotation

public class AnnotationWriterDefaultAnnotation
extends AnnotationWriter

AnnotationWriter specialized for DefaultAnnotation.

Author:
Julien Névo

Field Summary
protected  ClassDefinitionItem classDefinitionItem
          The Class related to this Annotation.
 
Fields inherited from class org.ow2.asmdex.AnnotationWriter
annotationItem, annotationType, currentName, father, mustSortArray, unsortedArray
 
Fields inherited from class org.ow2.asmdex.AnnotationVisitor
api, av
 
Constructor Summary
AnnotationWriterDefaultAnnotation(ConstantPool constantPool, AnnotationItem annotationItem, ClassDefinitionItem classDefinitionItem)
          Constructor for the default annotations.
 
Method Summary
 void visit(java.lang.String name, java.lang.Object value)
          Visits a primitive value of the annotation.
 void visitEnd()
          Visits the end of the annotation.
 
Methods inherited from class org.ow2.asmdex.AnnotationWriter
createAnnotationWriter, getAnnotationItem, setMustSortArray, visitAnnotation, visitArray, visitClass, visitEndRegisterAnnotationItemNotDefaultAnnotation, visitEnum, visitManageNonDefaultAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classDefinitionItem

protected ClassDefinitionItem classDefinitionItem
The Class related to this Annotation. This is only useful for Default Annotation, and must not be set in any other cases.

Constructor Detail

AnnotationWriterDefaultAnnotation

public AnnotationWriterDefaultAnnotation(ConstantPool constantPool,
                                         AnnotationItem annotationItem,
                                         ClassDefinitionItem classDefinitionItem)
Constructor for the default annotations.

Parameters:
constantPool - constant pool
annotationItem - annotation item
classDefinitionItem -
Method Detail

visit

public void visit(java.lang.String name,
                  java.lang.Object value)
Description copied from class: AnnotationVisitor
Visits a primitive value of the annotation.

Overrides:
visit in class AnnotationWriter
Parameters:
name - the value name.
value - the actual value, whose type must be Byte, Boolean, Character, Short, Integer, Long, Float, Double, String or Type. This value can also be an array of byte, boolean, short, char, int, long, float or double values (this is equivalent to using visitArray and visiting each array element in turn, but is more convenient).

visitEnd

public void visitEnd()
Description copied from class: AnnotationVisitor
Visits the end of the annotation.

Overrides:
visitEnd in class AnnotationWriter