|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.velocity.introspection.AnnotatedValue
public final class AnnotatedValue
An annotated value associates a collection of annotations with a value.
| Constructor Summary | |
|---|---|
AnnotatedValue(Object value,
Collection<Annotation> annotations)
Construct a new annotated value. |
|
| Method Summary | ||
|---|---|---|
Object |
box(Object value)
This will box another object with the same annotations as this value. |
|
boolean |
equals(Object o)
|
|
|
getAnnotation(Class<T> tClass)
|
|
Annotation[] |
getAnnotations()
|
|
Collection<Annotation> |
getCollectionInheritableAnnotations()
|
|
Annotation[] |
getDeclaredAnnotations()
|
|
String |
getDescription()
|
|
int |
hashCode()
|
|
boolean |
isAnnotationPresent(Class<? extends Annotation> aClass)
|
|
String |
toString()
Delegates and returns the result of calling toString on the boxed value. |
|
Object |
unbox()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedValue(Object value,
Collection<Annotation> annotations)
value - The value to annotateannotations - This values annotations.| Method Detail |
|---|
public boolean isAnnotationPresent(Class<? extends Annotation> aClass)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> tClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic Object unbox()
unbox in interface BoxedValuepublic Object box(Object value)
box in interface BoxingStrategyvalue - Value to box
public Collection<Annotation> getCollectionInheritableAnnotations()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic final String getDescription()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||