|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.annotation.AnnotationElement
public class AnnotationElement
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.
Nested Class Summary | |
---|---|
static class |
AnnotationElement.LazyClass
A wrapper for a className, that will allow late loading of the actual Class object of an annotation value For array type, className is componentClassName([])* |
Field Summary | |
---|---|
protected boolean |
isLazyClass
true if we have a lasy class (optimization to avoid instance of at each get) |
protected boolean |
isLazyClassArray
true if we have a lasy class array (N-dim) (optimization to avoid instance of at each get) |
Constructor Summary | |
---|---|
AnnotationElement(String name,
Object valueHolder)
Build a new annotation element |
Method Summary | |
---|---|
Object |
resolveValueHolderFrom(ClassLoader loader)
Returns the actual holded element value |
String |
toString()
Returns a string representation of the annotation element value Note that such a represention won't look like source code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean isLazyClass
protected boolean isLazyClassArray
Constructor Detail |
---|
public AnnotationElement(String name, Object valueHolder)
name
- valueHolder
- Method Detail |
---|
public Object resolveValueHolderFrom(ClassLoader loader)
loader
- from which to resolve LazyClass. It should be the annotated element class loader
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |