| java.lang.Object org.codehaus.aspectwerkz.annotation.instrumentation.asm.CustomAttributeHelper
CustomAttributeHelper | public class CustomAttributeHelper (Code) | | Helper class to wrap a custom annotation proxy (1.3/1.4 javadoc annotation) in a RuntimeInvisibleAnnotations.
The proxy is wrapped in a AnnotationInfo object which is serialized
and base64 encoded (ASM issue on array types in RIV).
author: Alexandre Vasseur |
createCustomAnnotation | public static Annotation createCustomAnnotation(byte[] bytes)(Code) | | Create an Annotation bytecode representation from the serialized version of the custom annotation proxy
Parameters: bytes - |
extractCustomAnnotation | public static AnnotationInfo extractCustomAnnotation(Annotation annotation)(Code) | | Extract the AnnotationInfo from the bytecode Annotation representation.
Parameters: annotation - must be a valid RIV, of type CustomAttribute.TYPE |
linkRuntimeInvisibleAnnotations | public static RuntimeInvisibleAnnotations linkRuntimeInvisibleAnnotations(Attribute attribute)(Code) | | Helper method to find the first RuntimeInvisibleAnnotations attribute in an Attribute chain.
If no such RIV exists, a new one is created (empty) and added last in the chain.
If the chain is null, a new sole RIV (empty) is created
Parameters: attribute - the RuntimeInvisibleAnnotations to add Annotation to |
|
|