org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.generic
Class GenericVisitor

java.lang.Object
  extended by org.objectweb.asm.commons.EmptyVisitor
      extended by org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.generic.GenericVisitor
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, org.objectweb.asm.ClassVisitor, org.objectweb.asm.FieldVisitor, org.objectweb.asm.MethodVisitor
Direct Known Subclasses:
RootGenericVisitor

public class GenericVisitor
extends org.objectweb.asm.commons.EmptyVisitor
implements org.objectweb.asm.AnnotationVisitor

Author:
Felix Project Team

Field Summary
protected  org.apache.felix.ipojo.metadata.Element element
           
 
Constructor Summary
GenericVisitor(org.apache.felix.ipojo.metadata.Element element)
           
 
Method Summary
 void visit(java.lang.String name, java.lang.Object value)
          Visit a 'simple' annotation attribute.
 org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String name, java.lang.String descriptor)
          Visit a sub-annotation.
 org.objectweb.asm.AnnotationVisitor visitArray(java.lang.String name)
          Visit an array attribute.
 void visitEnum(java.lang.String name, java.lang.String desc, java.lang.String value)
          Visits an enumeration attribute.
 
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor
visit, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitField, visitFieldInsn, visitFrame, visitIincInsn, visitInnerClass, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitParameterAnnotation, visitSource, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.asm.AnnotationVisitor
visitEnd
 

Field Detail

element

protected org.apache.felix.ipojo.metadata.Element element
Constructor Detail

GenericVisitor

public GenericVisitor(org.apache.felix.ipojo.metadata.Element element)
Method Detail

visit

public void visit(java.lang.String name,
                  java.lang.Object value)
Visit a 'simple' annotation attribute. This method is used for primitive arrays too.

Specified by:
visit in interface org.objectweb.asm.AnnotationVisitor
Overrides:
visit in class org.objectweb.asm.commons.EmptyVisitor
Parameters:
name - : attribute name
value - : attribute value
See Also:
EmptyVisitor.visit(String, Object)

visitAnnotation

public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String name,
                                                           java.lang.String descriptor)
Visit a sub-annotation.

Specified by:
visitAnnotation in interface org.objectweb.asm.AnnotationVisitor
Overrides:
visitAnnotation in class org.objectweb.asm.commons.EmptyVisitor
Parameters:
name - : attribute name.
descriptor - : annotation description
Returns:
an annotation visitor which will visit the given annotation
See Also:
EmptyVisitor.visitAnnotation(String, String)

visitArray

public org.objectweb.asm.AnnotationVisitor visitArray(java.lang.String name)
Visit an array attribute.

Specified by:
visitArray in interface org.objectweb.asm.AnnotationVisitor
Overrides:
visitArray in class org.objectweb.asm.commons.EmptyVisitor
Parameters:
name - : attribute name
Returns:
a visitor which will visit each element of the array
See Also:
EmptyVisitor.visitArray(String)

visitEnum

public void visitEnum(java.lang.String name,
                      java.lang.String desc,
                      java.lang.String value)
Visits an enumeration attribute.

Specified by:
visitEnum in interface org.objectweb.asm.AnnotationVisitor
Overrides:
visitEnum in class org.objectweb.asm.commons.EmptyVisitor
Parameters:
name - the attribute name
desc - the enumeration descriptor
value - the attribute value
See Also:
AnnotationVisitor.visitEnum(String, String, String)


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.