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

java.lang.Object
  extended byorg.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAnnotationHelper

public class AsmAnnotationHelper
extends Object

Helper visitor to extract Annotations. The visitors are not writing any bytecode and using a Null ClassVisitor / Code Visitor as a target instead.

Author:
Alexandre Vasseur

Nested Class Summary
static class AsmAnnotationHelper.ClassAnnotationExtractor
          Extracts class level annotations
static class AsmAnnotationHelper.ConstructorAnnotationExtractor
          Constructor annotations extractor
static class AsmAnnotationHelper.FieldAnnotationExtractor
          Field annotations extractor
static class AsmAnnotationHelper.MethodAnnotationExtractor
          Method annotations extractor
 
Field Summary
static org.objectweb.asm.Attribute[] ANNOTATIONS_ATTRIBUTES
           
static org.objectweb.asm.ClassVisitor NULL_CLASS_VISITOR
           
 
Constructor Summary
AsmAnnotationHelper()
           
 
Method Summary
static List extractAnnotations(List annotations, org.objectweb.asm.Attribute attribute, ClassLoader loader)
          Helper method to extract Runtime(In)VisibleAnnotations and unwrap custom annotation proxies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_CLASS_VISITOR

public static final org.objectweb.asm.ClassVisitor NULL_CLASS_VISITOR

ANNOTATIONS_ATTRIBUTES

public static final org.objectweb.asm.Attribute[] ANNOTATIONS_ATTRIBUTES
Constructor Detail

AsmAnnotationHelper

public AsmAnnotationHelper()
Method Detail

extractAnnotations

public static List extractAnnotations(List annotations,
                                      org.objectweb.asm.Attribute attribute,
                                      ClassLoader loader)
Helper method to extract Runtime(In)VisibleAnnotations and unwrap custom annotation proxies

Parameters:
annotations -
attribute -
loader -
Returns:
annotations list populated


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