com.atlassian.confluence.velocity.introspection
Class ToStringDelegatingAnnotationBoxedElement
java.lang.Object
com.atlassian.confluence.velocity.introspection.ToStringDelegatingAnnotationBoxedElement
- All Implemented Interfaces:
- AnnotationBoxedElement, BoxedValue, BoxingStrategy, AnnotatedElement
public final class ToStringDelegatingAnnotationBoxedElement
- extends Object
- implements AnnotationBoxedElement
AnnotationBoxedElement
that delegates all operations to
the wrapped element except for toString() which is delegated to the boxed value itself.
ToStringDelegatingAnnotationBoxedElement
public ToStringDelegatingAnnotationBoxedElement(AnnotationBoxedElement delegate)
unbox
public Object unbox()
- Specified by:
unbox
in interface BoxedValue
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
- Specified by:
isAnnotationPresent
in interface AnnotatedElement
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
- Specified by:
getAnnotation
in interface AnnotatedElement
getAnnotations
public Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interface AnnotatedElement
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interface AnnotatedElement
box
public Object box(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 String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2011 Atlassian. All Rights Reserved.