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

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.FieldAnnotationExtractor
All Implemented Interfaces:
org.objectweb.asm.ClassVisitor
Enclosing class:
AsmAnnotationHelper

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

Field 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.FieldAnnotationExtractor(List annotations, String name, 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 access, String name, String desc, Object value, org.objectweb.asm.Attribute attrs)
           
 void visitInnerClass(String s, String s1, String s2, int i)
           
 org.objectweb.asm.CodeVisitor visitMethod(int i, String s, String s1, String[] strings, org.objectweb.asm.Attribute attribute)
           
 
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.FieldAnnotationExtractor

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

visitField

public void visitField(int access,
                       String name,
                       String desc,
                       Object value,
                       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

visitMethod

public org.objectweb.asm.CodeVisitor visitMethod(int i,
                                                 String s,
                                                 String s1,
                                                 String[] strings,
                                                 org.objectweb.asm.Attribute attribute)
Specified by:
visitMethod 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.