com.espertech.esper.client.soda
Class AnnotationPart

java.lang.Object
  extended by com.espertech.esper.client.soda.AnnotationPart
All Implemented Interfaces:
java.io.Serializable

public class AnnotationPart
extends java.lang.Object
implements java.io.Serializable

Represents a single annotation.

See Also:
Serialized Form

Constructor Summary
AnnotationPart()
          Ctor.
AnnotationPart(java.lang.String name)
          Ctor.
AnnotationPart(java.lang.String name, java.util.List<AnnotationAttribute> attributes)
          Ctor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationPart

public AnnotationPart()
Ctor.


AnnotationPart

public AnnotationPart(java.lang.String name)
Ctor.

Parameters:
name - of annotation

AnnotationPart

public AnnotationPart(java.lang.String name,
                      java.util.List<AnnotationAttribute> attributes)
Ctor.

Parameters:
name - name of annotation
attributes - are the attribute values
Method Detail

copy

public void copy(AnnotationPart other)
Copy annotation values.

Parameters:
other - to copy

getTreeObjectName

public java.lang.String getTreeObjectName()
Returns the internal expression id assigned for tools to identify the expression.

Returns:
object name

setTreeObjectName

public void setTreeObjectName(java.lang.String treeObjectName)
Sets an internal expression id assigned for tools to identify the expression.

Parameters:
treeObjectName - object name

getName

public java.lang.String getName()
Returns annotation interface class name.

Returns:
name of class, can be fully qualified

setName

public void setName(java.lang.String name)
Sets annotation interface class name.

Parameters:
name - name of class, can be fully qualified

addValue

public void addValue(java.lang.Object value)
Add value.

Parameters:
value - to add

addValue

public void addValue(java.lang.String name,
                     java.lang.Object value)
Add named value.

Parameters:
name - name
value - value

getAttributes

public java.util.List<AnnotationAttribute> getAttributes()
Returns annotation attributes.

Returns:
the attribute values

toEPL

public static void toEPL(java.io.StringWriter writer,
                         java.util.List<AnnotationPart> annotations,
                         EPStatementFormatter formatter)
Print.

Parameters:
writer - to print to
annotations - annotations
formatter - for newline-whitespace formatting

toEPL

public void toEPL(java.io.StringWriter writer)
Print part.

Parameters:
writer - to write to

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com