Class AnnotationPart

java.lang.Object
com.espertech.esper.common.client.soda.AnnotationPart
All Implemented Interfaces:
Serializable

public class AnnotationPart extends Object implements Serializable
Represents a single annotation.
See Also:
  • Constructor Details

    • AnnotationPart

      public AnnotationPart()
      Ctor.
    • AnnotationPart

      public AnnotationPart(String name)
      Ctor.
      Parameters:
      name - of annotation
    • AnnotationPart

      public AnnotationPart(String name, List<AnnotationAttribute> attributes)
      Ctor.
      Parameters:
      name - name of annotation
      attributes - are the attribute values
  • Method Details

    • copy

      public void copy(AnnotationPart other)
      Copy annotation values.
      Parameters:
      other - to copy
    • getTreeObjectName

      public String getTreeObjectName()
      Returns the internal expression id assigned for tools to identify the expression.
      Returns:
      object name
    • setTreeObjectName

      public void setTreeObjectName(String treeObjectName)
      Sets an internal expression id assigned for tools to identify the expression.
      Parameters:
      treeObjectName - object name
    • getName

      public String getName()
      Returns annotation interface class name.
      Returns:
      name of class, can be fully qualified
    • setName

      public void setName(String name)
      Sets annotation interface class name.
      Parameters:
      name - name of class, can be fully qualified
    • addValue

      public void addValue(Object value)
      Add value.
      Parameters:
      value - to add
    • addValue

      public void addValue(String name, Object value)
      Add named value.
      Parameters:
      name - name
      value - value
    • getAttributes

      public List<AnnotationAttribute> 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 to
      annotations - annotations
      formatter - for newline-whitespace formatting
    • toEPL

      public void toEPL(StringWriter writer)
      Print part.
      Parameters:
      writer - to write to
    • nameAnnotation

      public static AnnotationPart nameAnnotation(String name)
      Returns a name annotation for use with a statement object model
      Parameters:
      name - the name to use
      Returns:
      name annotation part