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 JavaAnnotation
public Object getNamedParameter(String key)
getNamedParameter
in interface JavaAnnotation
public Map<String,Object> getNamedParameterMap()
getNamedParameterMap
in interface JavaAnnotation
public final JavaAnnotatedElement getContext()
public int getLineNumber()
public Object accept(ExpressionVisitor visitor)
AnnotationValue
accept
in interface AnnotationValue
visitor
- Visitorpublic DefaultJavaAnnotation getParameterValue()
JavaAnnotation#getNamedParameter(String)
.getParameterValue
in interface Expression
public Map<String,AnnotationValue> getPropertyMap()
getPropertyMap
in interface JavaAnnotation
public AnnotationValue getProperty(String name)
getProperty
in interface JavaAnnotation
public void setContext(JavaAnnotatedElement context)
Copyright © 2002–2016. All rights reserved.