org.ow2.asmdex
Class AnnotationWriterArray

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

public class AnnotationWriterArray
extends AnnotationWriter

AnnotationWriter specialized for Arrays.

Author:
Julien Névo

Field Summary
 
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
AnnotationWriterArray(ConstantPool constantPool, AnnotationItem annotationItem)
          Constructor
 
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
 

Constructor Detail

AnnotationWriterArray

public AnnotationWriterArray(ConstantPool constantPool,
                             AnnotationItem annotationItem)
Constructor

Parameters:
constantPool - constant pool
annotationItem - annotation to write
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