public class DefaultJavaAnnotation extends AbstractJavaModel implements AnnotationValue, Serializable, JavaAnnotation
Constructor and Description |
---|
DefaultJavaAnnotation(JavaClass type) |
DefaultJavaAnnotation(JavaClass type,
Map<String,Object> namedParameters) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(ExpressionVisitor visitor)
Accept a visitor for this value.
|
String |
getCodeBlock() |
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 |
setProperty(String name,
AnnotationValue value) |
String |
toString() |
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLineNumber
public DefaultJavaAnnotation(JavaClass type, Map<String,Object> namedParameters)
public DefaultJavaAnnotation(JavaClass type)
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 String getCodeBlock()
getCodeBlock
in interface JavaModel
public Object accept(ExpressionVisitor visitor)
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
Copyright © 2002–2019. All rights reserved.