com.atlassian.velocity.htmlsafe.introspection
Class ToStringDelegatingAnnotationBoxedElement<E>
java.lang.Object
com.atlassian.velocity.htmlsafe.introspection.ToStringDelegatingAnnotationBoxedElement<E>
- All Implemented Interfaces:
- AnnotationBoxedElement<E>, BoxedValue<E>, BoxingStrategy, java.lang.reflect.AnnotatedElement
public final class ToStringDelegatingAnnotationBoxedElement<E>
- extends java.lang.Object
- implements AnnotationBoxedElement<E>
AnnotationBoxedElement that delegates all operations to
the wrapped element except for toString() which is delegated to the boxed value itself.
|
Method Summary |
java.lang.Object |
box(java.lang.Object value)
Box the provided value according to the boxing strategy |
<T extends java.lang.annotation.Annotation>
T |
|
getAnnotation(java.lang.Class<T> annotationType)
|
java.util.Collection<java.lang.annotation.Annotation> |
getAnnotationCollection()
|
java.lang.annotation.Annotation[] |
getAnnotations()
|
java.lang.annotation.Annotation[] |
getDeclaredAnnotations()
|
<T extends java.lang.annotation.Annotation>
boolean |
|
hasAnnotation(java.lang.Class<T> clazz)
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
java.lang.String |
toString()
|
E |
unbox()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ToStringDelegatingAnnotationBoxedElement
public ToStringDelegatingAnnotationBoxedElement(AnnotationBoxedElement<E> delegate)
unbox
public E unbox()
- Specified by:
unbox in interface BoxedValue<E>
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
- Specified by:
isAnnotationPresent in interface java.lang.reflect.AnnotatedElement
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)
- Specified by:
getAnnotation in interface java.lang.reflect.AnnotatedElement
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations in interface java.lang.reflect.AnnotatedElement
getDeclaredAnnotations
public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations in interface java.lang.reflect.AnnotatedElement
getAnnotationCollection
public java.util.Collection<java.lang.annotation.Annotation> getAnnotationCollection()
- Specified by:
getAnnotationCollection in interface AnnotationBoxedElement<E>
hasAnnotation
public <T extends java.lang.annotation.Annotation> boolean hasAnnotation(java.lang.Class<T> clazz)
- Specified by:
hasAnnotation in interface AnnotationBoxedElement<E>
box
public java.lang.Object box(java.lang.Object value)
- Description copied from interface:
BoxingStrategy
- Box the provided value according to the boxing strategy
- Specified by:
box in interface BoxingStrategy
- Parameters:
value - object to box
- Returns:
- value boxed according to this strategy
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2013 Atlassian. All Rights Reserved.