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

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

public static class AsmAnnotationHelper.ClassAnnotationExtractor
extends org.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper.AnnotationExtractor

Extracts class level annotations


Field Summary
protected  List m_annotations
          The list where encountered annotation will be put
protected  ClassLoader m_loader
          This classloader will be used to instantiate the proxy instance for Custom Annotation support (1.3/1.4).
 
Constructor Summary
AsmAnnotationHelper.ClassAnnotationExtractor(List annotations, 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 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_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.ClassAnnotationExtractor

public AsmAnnotationHelper.ClassAnnotationExtractor(List annotations,
                                                    ClassLoader loader)
Method Detail

visitAttribute

public void visitAttribute(org.objectweb.asm.Attribute attribute)

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

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

visitEnd

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


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