org.apache.felix.ipojo.manipulation.annotations
Class MethodCollector

java.lang.Object
  extended by org.objectweb.asm.commons.EmptyVisitor
      extended by org.apache.felix.ipojo.manipulation.annotations.MethodCollector
All Implemented Interfaces:
org.objectweb.asm.AnnotationVisitor, org.objectweb.asm.ClassVisitor, org.objectweb.asm.FieldVisitor, org.objectweb.asm.MethodVisitor

public class MethodCollector
extends org.objectweb.asm.commons.EmptyVisitor

This class collects method annotations, and give them to the metadata collector.

Author:
Felix Project Team

Constructor Summary
MethodCollector(String name, String descriptor, MetadataCollector collector)
          Constructor.
 
Method Summary
 org.objectweb.asm.AnnotationVisitor visitAnnotation(String arg0, boolean arg1)
          Visit method annotations.
 org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int index, String annotation, boolean visible)
          Visit a parameter annotation.
 
Methods inherited from class org.objectweb.asm.commons.EmptyVisitor
visit, visit, visitAnnotation, visitAnnotationDefault, visitArray, visitAttribute, visitCode, visitEnd, visitEnum, visitField, visitFieldInsn, visitFrame, visitIincInsn, visitInnerClass, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethod, visitMethodInsn, visitMultiANewArrayInsn, visitOuterClass, visitSource, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCollector

public MethodCollector(String name,
                       String descriptor,
                       MetadataCollector collector)
Constructor.

Parameters:
name - : name of the method.
collector - : parent collector.
Method Detail

visitParameterAnnotation

public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int index,
                                                                    String annotation,
                                                                    boolean visible)
Visit a parameter annotation.

Specified by:
visitParameterAnnotation in interface org.objectweb.asm.MethodVisitor
Overrides:
visitParameterAnnotation in class org.objectweb.asm.commons.EmptyVisitor
See Also:
EmptyVisitor.visitParameterAnnotation(int, java.lang.String, boolean)

visitAnnotation

public org.objectweb.asm.AnnotationVisitor visitAnnotation(String arg0,
                                                           boolean arg1)
Visit method annotations.

Specified by:
visitAnnotation in interface org.objectweb.asm.ClassVisitor
Specified by:
visitAnnotation in interface org.objectweb.asm.FieldVisitor
Specified by:
visitAnnotation in interface org.objectweb.asm.MethodVisitor
Overrides:
visitAnnotation in class org.objectweb.asm.commons.EmptyVisitor
Parameters:
arg0 - : annotation name.
arg1 - : is the annotation visible at runtime.
Returns:
the visitor paring the visited annotation.
See Also:
EmptyVisitor.visitAnnotation(java.lang.String, boolean)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.