Class AnnotationPart
java.lang.Object
com.espertech.esper.common.client.soda.AnnotationPart
- All Implemented Interfaces:
Serializable
Represents a single annotation.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.AnnotationPart
(String name) Ctor.AnnotationPart
(String name, List<AnnotationAttribute> attributes) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add value.void
Add named value.void
copy
(AnnotationPart other) Copy annotation values.Returns annotation attributes.getName()
Returns annotation interface class name.Returns the internal expression id assigned for tools to identify the expression.static AnnotationPart
nameAnnotation
(String name) Returns a name annotation for use with a statement object modelvoid
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.
-
Constructor Details
-
AnnotationPart
public AnnotationPart()Ctor. -
AnnotationPart
Ctor.- Parameters:
name
- of annotation
-
AnnotationPart
Ctor.- Parameters:
name
- name of annotationattributes
- are the attribute values
-
-
Method Details
-
copy
Copy annotation values.- Parameters:
other
- to copy
-
getTreeObjectName
Returns the internal expression id assigned for tools to identify the expression.- Returns:
- object name
-
setTreeObjectName
Sets an internal expression id assigned for tools to identify the expression.- Parameters:
treeObjectName
- object name
-
getName
Returns annotation interface class name.- Returns:
- name of class, can be fully qualified
-
setName
Sets annotation interface class name.- Parameters:
name
- name of class, can be fully qualified
-
addValue
Add value.- Parameters:
value
- to add
-
addValue
Add named value.- Parameters:
name
- namevalue
- value
-
getAttributes
Returns annotation attributes.- Returns:
- the attribute values
-
toEPL
public static void toEPL(StringWriter writer, List<AnnotationPart> annotations, EPStatementFormatter formatter) Print.- Parameters:
writer
- to print toannotations
- annotationsformatter
- for newline-whitespace formatting
-
toEPL
Print part.- Parameters:
writer
- to write to
-
nameAnnotation
Returns a name annotation for use with a statement object model- Parameters:
name
- the name to use- Returns:
- name annotation part
-