public class Annotation extends Object implements SiddhiElement
Constructor and Description |
---|
Annotation(String name) |
Modifier and Type | Method and Description |
---|---|
Annotation |
annotation(Annotation annotation) |
static Annotation |
annotation(String name) |
Annotation |
element(Element element) |
Annotation |
element(String value) |
Annotation |
element(String key,
String value) |
boolean |
equals(Object o) |
List<Annotation> |
getAnnotations() |
List<Annotation> |
getAnnotations(String name) |
String |
getElement(String key) |
List<Element> |
getElements() |
String |
getName() |
int[] |
getQueryContextEndIndex() |
int[] |
getQueryContextStartIndex() |
int |
hashCode() |
void |
setAnnotations(List<Annotation> annotations) |
void |
setElements(List<Element> elements) |
void |
setName(String name) |
void |
setQueryContextEndIndex(int[] lineAndColumn) |
void |
setQueryContextStartIndex(int[] lineAndColumn) |
String |
toString() |
public Annotation(String name)
public static Annotation annotation(String name)
public String getName()
public void setName(String name)
public Annotation element(String key, String value)
public Annotation element(String value)
public Annotation element(Element element)
public List<Annotation> getAnnotations()
public void setAnnotations(List<Annotation> annotations)
public List<Annotation> getAnnotations(String name)
public Annotation annotation(Annotation annotation)
public int[] getQueryContextStartIndex()
getQueryContextStartIndex
in interface SiddhiElement
public void setQueryContextStartIndex(int[] lineAndColumn)
setQueryContextStartIndex
in interface SiddhiElement
public int[] getQueryContextEndIndex()
getQueryContextEndIndex
in interface SiddhiElement
public void setQueryContextEndIndex(int[] lineAndColumn)
setQueryContextEndIndex
in interface SiddhiElement
Copyright © 2018 WSO2. All rights reserved.