public class DefaultJavaAnnotation extends Object implements AnnotationValue, Serializable, JavaAnnotation
| Constructor and Description |
|---|
DefaultJavaAnnotation(JavaClass type,
int line) |
DefaultJavaAnnotation(JavaClass type,
JavaAnnotatedElement context,
Map<String,Object> namedParameters,
int lineNumber) |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(ExpressionVisitor visitor)
Accept a visitor for this value.
|
JavaAnnotatedElement |
getContext() |
int |
getLineNumber() |
Object |
getNamedParameter(String key) |
Map<String,Object> |
getNamedParameterMap() |
DefaultJavaAnnotation |
getParameterValue()
Get a parameter value for
JavaAnnotation#getNamedParameter(String). |
AnnotationValue |
getProperty(String name) |
Map<String,AnnotationValue> |
getPropertyMap() |
JavaClass |
getType() |
void |
setContext(JavaAnnotatedElement context) |
void |
setProperty(String name,
AnnotationValue value) |
String |
toString() |
public DefaultJavaAnnotation(JavaClass type, JavaAnnotatedElement context, Map<String,Object> namedParameters, int lineNumber)
public DefaultJavaAnnotation(JavaClass type, int line)
public final void setProperty(String name, AnnotationValue value)
public JavaClass getType()
getType in interface JavaAnnotationpublic Object getNamedParameter(String key)
getNamedParameter in interface JavaAnnotationpublic Map<String,Object> getNamedParameterMap()
getNamedParameterMap in interface JavaAnnotationpublic final JavaAnnotatedElement getContext()
public int getLineNumber()
public Object accept(ExpressionVisitor visitor)
AnnotationValueaccept in interface AnnotationValuevisitor - Visitorpublic DefaultJavaAnnotation getParameterValue()
JavaAnnotation#getNamedParameter(String).getParameterValue in interface Expressionpublic Map<String,AnnotationValue> getPropertyMap()
getPropertyMap in interface JavaAnnotationpublic AnnotationValue getProperty(String name)
getProperty in interface JavaAnnotationpublic void setContext(JavaAnnotatedElement context)
Copyright © 2002–2016. All rights reserved.