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