public class AnnotationPart extends Object implements Serializable
Constructor and Description |
---|
AnnotationPart()
Ctor.
|
AnnotationPart(String name)
Ctor.
|
AnnotationPart(String name,
List<AnnotationAttribute> attributes)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(Object value)
Add value.
|
void |
addValue(String name,
Object value)
Add named value.
|
void |
copy(AnnotationPart other)
Copy annotation values.
|
List<AnnotationAttribute> |
getAttributes()
Returns annotation attributes.
|
String |
getName()
Returns annotation interface class name.
|
String |
getTreeObjectName()
Returns the internal expression id assigned for tools to identify the expression.
|
void |
setName(String name)
Sets annotation interface class name.
|
void |
setTreeObjectName(String treeObjectName)
Sets an internal expression id assigned for tools to identify the expression.
|
void |
toEPL(StringWriter writer)
Print part.
|
static void |
toEPL(StringWriter writer,
List<AnnotationPart> annotations,
EPStatementFormatter formatter)
Print.
|
public AnnotationPart()
public AnnotationPart(String name)
name
- of annotationpublic AnnotationPart(String name, List<AnnotationAttribute> attributes)
name
- name of annotationattributes
- are the attribute valuespublic void copy(AnnotationPart other)
other
- to copypublic String getTreeObjectName()
public void setTreeObjectName(String treeObjectName)
treeObjectName
- object namepublic String getName()
public void setName(String name)
name
- name of class, can be fully qualifiedpublic void addValue(Object value)
value
- to addpublic void addValue(String name, Object value)
name
- namevalue
- valuepublic List<AnnotationAttribute> getAttributes()
public static void toEPL(StringWriter writer, List<AnnotationPart> annotations, EPStatementFormatter formatter)
writer
- to print toannotations
- annotationsformatter
- for newline-whitespace formattingpublic void toEPL(StringWriter writer)
writer
- to write to