com.bm.ejb3metadata.annotations.analyzer
Class ScanMethodVisitor

java.lang.Object
  extended by org.ejb3unit.asm.jar.commons.EmptyVisitor
      extended by com.bm.ejb3metadata.annotations.analyzer.ScanCommonVisitor<MethodAnnotationMetadata>
          extended by com.bm.ejb3metadata.annotations.analyzer.ScanMethodVisitor
All Implemented Interfaces:
org.ejb3unit.asm.jar.AnnotationVisitor, org.ejb3unit.asm.jar.ClassVisitor, org.ejb3unit.asm.jar.FieldVisitor, org.ejb3unit.asm.jar.MethodVisitor

public class ScanMethodVisitor
extends ScanCommonVisitor<MethodAnnotationMetadata>
implements org.ejb3unit.asm.jar.MethodVisitor

This classes analyses a given method and build/fill meta data information.

Author:
Daniel Wiese

Constructor Summary
ScanMethodVisitor(JMethod jMethod, ClassAnnotationMetadata classAnnotationMetadata)
          Constructor.
 
Method Summary
 org.ejb3unit.asm.jar.AnnotationVisitor visitAnnotationDefault()
          Visits the default value of this annotation interface method (ignore it).
 void visitEnd()
          Visits the end of the method.
 org.ejb3unit.asm.jar.AnnotationVisitor visitParameterAnnotation(int parameter, java.lang.String desc, boolean visible)
          Visits an annotation of a parameter this method (ignore it).
 
Methods inherited from class com.bm.ejb3metadata.annotations.analyzer.ScanCommonVisitor
getAnnotationVisitors, getEmptyVisitor, initVisitors, visitAnnotation
 
Methods inherited from class org.ejb3unit.asm.jar.commons.EmptyVisitor
visit, visit, visitAnnotation, visitArray, visitAttribute, visitCode, 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
 
Methods inherited from interface org.ejb3unit.asm.jar.MethodVisitor
visitAnnotation, visitAttribute, visitCode, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 

Constructor Detail

ScanMethodVisitor

public ScanMethodVisitor(JMethod jMethod,
                         ClassAnnotationMetadata classAnnotationMetadata)
Constructor.

Parameters:
jMethod - Method object on which we set meta data.
classAnnotationMetadata - the parent object on which add generated meta-data.
Method Detail

visitAnnotationDefault

public org.ejb3unit.asm.jar.AnnotationVisitor visitAnnotationDefault()
Visits the default value of this annotation interface method (ignore it).

Specified by:
visitAnnotationDefault in interface org.ejb3unit.asm.jar.MethodVisitor
Overrides:
visitAnnotationDefault in class org.ejb3unit.asm.jar.commons.EmptyVisitor
Returns:
a non null visitor to the visit the actual default value of this annotation interface method. The 'name' parameters passed to the methods of this annotation visitor are ignored. Moreover, exacly one visit method must be called on this annotation visitor, followed by visitEnd.

visitParameterAnnotation

public org.ejb3unit.asm.jar.AnnotationVisitor visitParameterAnnotation(int parameter,
                                                                       java.lang.String desc,
                                                                       boolean visible)
Visits an annotation of a parameter this method (ignore it).

Specified by:
visitParameterAnnotation in interface org.ejb3unit.asm.jar.MethodVisitor
Overrides:
visitParameterAnnotation in class org.ejb3unit.asm.jar.commons.EmptyVisitor
Parameters:
parameter - the parameter index.
desc - the class descriptor of the annotation class.
visible - true if the annotation is visible at runtime.
Returns:
a non null visitor to visit the annotation values.

visitEnd

public void visitEnd()
Visits the end of the method. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the method have been visited.

Specified by:
visitEnd in interface org.ejb3unit.asm.jar.AnnotationVisitor
Specified by:
visitEnd in interface org.ejb3unit.asm.jar.ClassVisitor
Specified by:
visitEnd in interface org.ejb3unit.asm.jar.FieldVisitor
Specified by:
visitEnd in interface org.ejb3unit.asm.jar.MethodVisitor
Overrides:
visitEnd in class org.ejb3unit.asm.jar.commons.EmptyVisitor


Copyright © 2008. All Rights Reserved.