org.codehaus.aspectwerkz.annotation.instrumentation.asm
Class AsmAnnotationHelper
java.lang.Object
org.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
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 |
NULL_CLASS_VISITOR
public static final org.objectweb.asm.ClassVisitor NULL_CLASS_VISITOR
ANNOTATIONS_ATTRIBUTES
public static final org.objectweb.asm.Attribute[] ANNOTATIONS_ATTRIBUTES
AsmAnnotationHelper
public AsmAnnotationHelper()
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.