org.apache.felix.ipojo.manipulator.metadata.annotation.visitor
Class ProvidesVisitor

java.lang.Object
  extended by org.objectweb.asm.commons.EmptyVisitor
      extended by org.apache.felix.ipojo.manipulator.metadata.annotation.visitor.ProvidesVisitor
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, org.objectweb.asm.ClassVisitor, org.objectweb.asm.FieldVisitor, org.objectweb.asm.MethodVisitor

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

Parse the @Provides annotation.

Author:
Felix Project Team
See Also:
Provides

Constructor Summary
ProvidesVisitor(ComponentWorkbench workbench)
           
 
Method Summary
 void visit(java.lang.String name, java.lang.Object value)
          Visit @provides annotation attributes.
 org.objectweb.asm.AnnotationVisitor visitArray(java.lang.String name)
          Visit specifications array.
 void visitEnd()
          End of the visit.
 
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor
visit, visitAnnotation, visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnum, 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
visitAnnotation, visitEnum
 

Constructor Detail

ProvidesVisitor

public ProvidesVisitor(ComponentWorkbench workbench)
Method Detail

visit

public void visit(java.lang.String name,
                  java.lang.Object value)
Visit @provides annotation attributes.

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

visitArray

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

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 visiting each element of the array.
See Also:
EmptyVisitor.visitArray(java.lang.String)

visitEnd

public void visitEnd()
End of the visit. Append to the element element the computed "provides" element.

Specified by:
visitEnd in interface org.objectweb.asm.AnnotationVisitor
Specified by:
visitEnd in interface org.objectweb.asm.ClassVisitor
Specified by:
visitEnd in interface org.objectweb.asm.FieldVisitor
Specified by:
visitEnd in interface org.objectweb.asm.MethodVisitor
Overrides:
visitEnd in class org.objectweb.asm.commons.EmptyVisitor
See Also:
EmptyVisitor.visitEnd()


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