|
||||||||||
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 AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> tClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public Object unbox()
unbox
in interface BoxedValue
public Object box(Object value)
box
in interface BoxingStrategy
value
- Value to box
public Collection<Annotation> getCollectionInheritableAnnotations()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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 |