com.atlassian.confluence.velocity.introspection
Class ToStringDelegatingAnnotationBoxedElement
java.lang.Object
com.atlassian.confluence.velocity.introspection.ToStringDelegatingAnnotationBoxedElement
- All Implemented Interfaces:
- AnnotationBoxedElement, BoxedValue, BoxingStrategy, java.lang.reflect.AnnotatedElement
public final class ToStringDelegatingAnnotationBoxedElement
- extends java.lang.Object
- implements AnnotationBoxedElement
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.lang.annotation.Annotation[] |
getAnnotations()
|
java.lang.annotation.Annotation[] |
getDeclaredAnnotations()
|
boolean |
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
|
java.lang.String |
toString()
|
java.lang.Object |
unbox()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ToStringDelegatingAnnotationBoxedElement
public ToStringDelegatingAnnotationBoxedElement(AnnotationBoxedElement delegate)
unbox
public java.lang.Object unbox()
- Specified by:
unbox
in interface BoxedValue
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
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 © 2003-2013 Atlassian. All Rights Reserved.