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, setModelWriterFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLineNumberpublic 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 JavaAnnotationpublic Object getNamedParameter(String key)
getNamedParameter in interface JavaAnnotationpublic Map<String,Object> getNamedParameterMap()
getNamedParameterMap in interface JavaAnnotationpublic String getCodeBlock()
getCodeBlock in interface JavaModelpublic Object accept(ExpressionVisitor visitor)
accept 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 JavaAnnotationCopyright © 2002–2025. All rights reserved.