|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.velocity.htmlsafe.introspection.AnnotatedValue<E>
public final class AnnotatedValue<E>
An annotated value associates a collection of annotations with a value.
| Constructor Summary | |
|---|---|
AnnotatedValue(E 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.util.Collection<java.lang.annotation.Annotation> |
getAnnotationCollection()
|
|
java.lang.annotation.Annotation[] |
getAnnotations()
|
|
java.util.Collection<java.lang.annotation.Annotation> |
getCollectionInheritableAnnotations()
|
|
java.lang.annotation.Annotation[] |
getDeclaredAnnotations()
|
|
java.lang.String |
getDescription()
|
|
|
hasAnnotation(java.lang.Class<T> tClass)
|
|
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. |
|
E |
unbox()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedValue(E value,
java.util.Collection<java.lang.annotation.Annotation> annotations)
value - The value to annotateannotations - This value's annotations.| Method Detail |
|---|
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> aClass)
isAnnotationPresent in interface java.lang.reflect.AnnotatedElementpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> tClass)
getAnnotation in interface java.lang.reflect.AnnotatedElementpublic <T extends java.lang.annotation.Annotation> boolean hasAnnotation(java.lang.Class<T> tClass)
hasAnnotation in interface AnnotationBoxedElement<E>public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.lang.annotation.Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElementpublic java.util.Collection<java.lang.annotation.Annotation> getAnnotationCollection()
getAnnotationCollection in interface AnnotationBoxedElement<E>public E unbox()
unbox in interface BoxedValue<E>public java.lang.Object box(java.lang.Object value)
box in interface BoxingStrategyvalue - Value to box
public java.util.Collection<java.lang.annotation.Annotation> getCollectionInheritableAnnotations()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||