Package io.siddhi.query.api.annotation
Class Annotation
- java.lang.Object
-
- io.siddhi.query.api.annotation.Annotation
-
- All Implemented Interfaces:
SiddhiElement,Serializable
public class Annotation extends Object implements SiddhiElement
Annotation for siddhi functions and extensions- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Annotation(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotationannotation(Annotation annotation)static Annotationannotation(String name)Annotationelement(Element element)Annotationelement(String value)Annotationelement(String key, String value)booleanequals(Object o)List<Annotation>getAnnotations()List<Annotation>getAnnotations(String name)StringgetElement(String key)List<Element>getElements()StringgetName()int[]getQueryContextEndIndex()int[]getQueryContextStartIndex()inthashCode()voidsetAnnotations(List<Annotation> annotations)voidsetElements(List<Element> elements)voidsetName(String name)voidsetQueryContextEndIndex(int[] lineAndColumn)voidsetQueryContextStartIndex(int[] lineAndColumn)StringtoString()
-
-
-
Constructor Detail
-
Annotation
public Annotation(String name)
-
-
Method Detail
-
annotation
public static Annotation annotation(String name)
-
getName
public String getName()
-
setName
public void setName(String name)
-
element
public Annotation element(String key, String value)
-
element
public Annotation element(String value)
-
element
public Annotation element(Element element)
-
getAnnotations
public List<Annotation> getAnnotations()
-
setAnnotations
public void setAnnotations(List<Annotation> annotations)
-
getAnnotations
public List<Annotation> getAnnotations(String name)
-
annotation
public Annotation annotation(Annotation annotation)
-
getQueryContextStartIndex
public int[] getQueryContextStartIndex()
- Specified by:
getQueryContextStartIndexin interfaceSiddhiElement
-
setQueryContextStartIndex
public void setQueryContextStartIndex(int[] lineAndColumn)
- Specified by:
setQueryContextStartIndexin interfaceSiddhiElement
-
getQueryContextEndIndex
public int[] getQueryContextEndIndex()
- Specified by:
getQueryContextEndIndexin interfaceSiddhiElement
-
setQueryContextEndIndex
public void setQueryContextEndIndex(int[] lineAndColumn)
- Specified by:
setQueryContextEndIndexin interfaceSiddhiElement
-
-