public class DefaultJavaAnnotation extends AbstractJavaModel implements AnnotationValue, java.io.Serializable, JavaAnnotation
| Constructor and Description |
|---|
DefaultJavaAnnotation(JavaClass type) |
DefaultJavaAnnotation(JavaClass type,
java.util.Map<java.lang.String,java.lang.Object> namedParameters) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(ExpressionVisitor visitor)
Accept a visitor for this value.
|
java.lang.String |
getCodeBlock() |
java.lang.Object |
getNamedParameter(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.Object> |
getNamedParameterMap() |
DefaultJavaAnnotation |
getParameterValue()
Get a parameter value for
JavaAnnotation.getNamedParameter(String). |
AnnotationValue |
getProperty(java.lang.String name) |
java.util.Map<java.lang.String,AnnotationValue> |
getPropertyMap() |
JavaClass |
getType() |
void |
setProperty(java.lang.String name,
AnnotationValue value) |
java.lang.String |
toString() |
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLineNumberpublic DefaultJavaAnnotation(JavaClass type, java.util.Map<java.lang.String,java.lang.Object> namedParameters)
public DefaultJavaAnnotation(JavaClass type)
public final void setProperty(java.lang.String name,
AnnotationValue value)
public JavaClass getType()
getType in interface JavaAnnotationpublic java.lang.Object getNamedParameter(java.lang.String key)
getNamedParameter in interface JavaAnnotationpublic java.util.Map<java.lang.String,java.lang.Object> getNamedParameterMap()
getNamedParameterMap in interface JavaAnnotationpublic java.lang.String getCodeBlock()
getCodeBlock in interface JavaModelpublic java.lang.Object accept(ExpressionVisitor visitor)
accept in interface AnnotationValuevisitor - Visitorpublic DefaultJavaAnnotation getParameterValue()
JavaAnnotation.getNamedParameter(String).getParameterValue in interface Expressionpublic java.util.Map<java.lang.String,AnnotationValue> getPropertyMap()
getPropertyMap in interface JavaAnnotationpublic AnnotationValue getProperty(java.lang.String name)
getProperty in interface JavaAnnotationpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2002-2018. All Rights Reserved.