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