| |
|
| java.lang.Object org.codehaus.aspectwerkz.annotation.AnnotationElement
AnnotationElement | public class AnnotationElement implements Serializable(Code) | | A structure for an Annotation element
It wraps value behind an holder. The holder is the object itself (boxed) excepted
for Class, for which it is a LazyClass.
author: Alexandre Vasseur |
Inner Class :public static class LazyClass implements Serializable | |
Method Summary | |
public Object | resolveValueHolderFrom(ClassLoader loader) Returns the actual holded element value
Parameters: loader - from which to resolve LazyClass. | public String | toString() Returns a string representation of the annotation element value
Note that such a represention won't look like source code.
(f.e. |
isLazyClass | protected boolean isLazyClass(Code) | | true if we have a lasy class (optimization to avoid instance of at each get)
|
isLazyClassArray | protected boolean isLazyClassArray(Code) | | true if we have a lasy class array (N-dim) (optimization to avoid instance of at each get)
|
AnnotationElement | public AnnotationElement(String name, Object valueHolder)(Code) | | Build a new annotation element
Parameters: name - Parameters: valueHolder - |
resolveValueHolderFrom | public Object resolveValueHolderFrom(ClassLoader loader)(Code) | | Returns the actual holded element value
Parameters: loader - from which to resolve LazyClass. It should be the annotated element class loader |
toString | public String toString()(Code) | | Returns a string representation of the annotation element value
Note that such a represention won't look like source code.
(f.e. element String s() will not have quotes and escapes etc).
|
|
|
|