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