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

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

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

AnnotationVisitor parsing the @Requires annotation.

Author:
Felix Project Team
See Also:
Requires

Constructor Summary
RequiresVisitor(ComponentWorkbench workbench, java.lang.String name)
          Constructor.
 
Method Summary
 void visit(java.lang.String name, java.lang.Object value)
          Visit one "simple" annotation.
 void visitEnd()
          End of the annotation.
 
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor
visit, visitAnnotation, visitAnnotation, visitAnnotationDefault, visitArray, 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, visitArray, visitEnum
 

Constructor Detail

RequiresVisitor

public RequiresVisitor(ComponentWorkbench workbench,
                       java.lang.String name)
Constructor.

Parameters:
name - : field name.
Method Detail

visit

public void visit(java.lang.String name,
                  java.lang.Object value)
Visit one "simple" annotation.

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

visitEnd

public void visitEnd()
End of the annotation. Create a "requires" 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:
AnnotationVisitor.visitEnd()


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