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)
AnnotationValue
accept
in interface AnnotationValue
visitor
- Visitorpublic Object getParameterValue()
AnnotationValue
getNamedParameter(String)
.getParameterValue
in interface AnnotationValue
public Map getPropertyMap()
public AnnotationValue getProperty(String name)
public void setContext(AbstractBaseJavaEntity context)
Copyright © 2002–2017. All rights reserved.