public class Annotation extends java.lang.Object implements AnnotationValue, java.io.Serializable
| Constructor and Description |
|---|
Annotation(Type type,
AbstractBaseJavaEntity context,
java.util.Map namedParameters,
int lineNumber) |
Annotation(Type type,
int line) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
accept(AnnotationVisitor visitor)
Accept a visitor for this value.
|
AbstractBaseJavaEntity |
getContext() |
int |
getLineNumber() |
java.lang.Object |
getNamedParameter(java.lang.String key) |
java.util.Map |
getNamedParameterMap() |
java.lang.Object |
getParameterValue()
Get a parameter value for
getNamedParameter(String). |
AnnotationValue |
getProperty(java.lang.String name) |
java.util.Map |
getPropertyMap() |
Type |
getType() |
void |
setContext(AbstractBaseJavaEntity context) |
void |
setProperty(java.lang.String name,
AnnotationValue value) |
java.lang.String |
toString() |
public Annotation(Type type, AbstractBaseJavaEntity context, java.util.Map namedParameters, int lineNumber)
public Annotation(Type type, int line)
public void setProperty(java.lang.String name,
AnnotationValue value)
public Type getType()
public java.lang.Object getNamedParameter(java.lang.String key)
key - name of a named-parameterpublic java.util.Map getNamedParameterMap()
public final AbstractBaseJavaEntity getContext()
public int getLineNumber()
public java.lang.Object accept(AnnotationVisitor visitor)
AnnotationValueaccept in interface AnnotationValuevisitor - Visitorpublic java.lang.Object getParameterValue()
AnnotationValuegetNamedParameter(String).getParameterValue in interface AnnotationValuepublic java.util.Map getPropertyMap()
public AnnotationValue getProperty(java.lang.String name)
public void setContext(AbstractBaseJavaEntity context)
public java.lang.String toString()
toString in class java.lang.Object