org.codehaus.aspectwerkz.annotation.instrumentation.asm
Class AsmAnnotationHelper.MethodAnnotationExtractor

java.lang.Object
  extended byorg.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.NullClassVisitor
      extended byorg.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.AnnotationExtractor
          extended byorg.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.MemberAnnotationExtractor
              extended byorg.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.MethodAnnotationExtractor
All Implemented Interfaces:
org.objectweb.asm.ClassVisitor
Direct Known Subclasses:
AsmAnnotationHelper.ConstructorAnnotationExtractor
Enclosing class:
AsmAnnotationHelper

public static class AsmAnnotationHelper.MethodAnnotationExtractor
extends org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.MemberAnnotationExtractor

Method annotations extractor


Field Summary
protected  List m_annotations
          The list where encountered annotation will be put
protected  String m_desc
          Member descriptor (as in visitMethod/visitField ASM methods)
protected  ClassLoader m_loader
          This classloader will be used to instantiate the proxy instance for Custom Annotation support (1.3/1.4).
protected  String m_name
          Member name (method name, "", field name
 
Constructor Summary
AsmAnnotationHelper.MethodAnnotationExtractor(List annotations, String name, String desc, ClassLoader loader)
           
 
Method Summary
 void visit(int i, int i1, String s, String s1, String[] strings, String s2)
           
 void visitAttribute(org.objectweb.asm.Attribute attribute)
           
 void visitEnd()
           
 void visitField(int i, String s, String s1, Object o, org.objectweb.asm.Attribute attribute)
           
 void visitInnerClass(String s, String s1, String s2, int i)
           
 org.objectweb.asm.CodeVisitor visitMethod(int access, String name, String desc, String[] exceptions, org.objectweb.asm.Attribute attrs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_name

protected String m_name
Member name (method name, "", field name


m_desc

protected String m_desc
Member descriptor (as in visitMethod/visitField ASM methods)


m_annotations

protected List m_annotations
The list where encountered annotation will be put


m_loader

protected ClassLoader m_loader
This classloader will be used to instantiate the proxy instance for Custom Annotation support (1.3/1.4). See CustomAttribute that wraps in a RuntimeInvisibleAnnotation the user custom annotations.
Note: no weak reference is used since the visitor is created for a one shot usage.

Constructor Detail

AsmAnnotationHelper.MethodAnnotationExtractor

public AsmAnnotationHelper.MethodAnnotationExtractor(List annotations,
                                                     String name,
                                                     String desc,
                                                     ClassLoader loader)
Method Detail

visitMethod

public org.objectweb.asm.CodeVisitor visitMethod(int access,
                                                 String name,
                                                 String desc,
                                                 String[] exceptions,
                                                 org.objectweb.asm.Attribute attrs)

visit

public void visit(int i,
                  int i1,
                  String s,
                  String s1,
                  String[] strings,
                  String s2)
Specified by:
visit in interface org.objectweb.asm.ClassVisitor

visitInnerClass

public void visitInnerClass(String s,
                            String s1,
                            String s2,
                            int i)
Specified by:
visitInnerClass in interface org.objectweb.asm.ClassVisitor

visitField

public void visitField(int i,
                       String s,
                       String s1,
                       Object o,
                       org.objectweb.asm.Attribute attribute)
Specified by:
visitField in interface org.objectweb.asm.ClassVisitor

visitAttribute

public void visitAttribute(org.objectweb.asm.Attribute attribute)
Specified by:
visitAttribute in interface org.objectweb.asm.ClassVisitor

visitEnd

public void visitEnd()
Specified by:
visitEnd in interface org.objectweb.asm.ClassVisitor


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.