本文整理了Java中org.wso2.siddhi.query.api.annotation.Annotation.element()
方法的一些代码示例,展示了Annotation.element()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.element()
方法的具体详情如下:
包路径:org.wso2.siddhi.query.api.annotation.Annotation
类名称:Annotation
方法名:element
暂无
代码示例来源:origin: wso2/siddhi
public SiddhiApp(String name) {
annotations.add(Annotation.annotation("info").element("name", name));
}
代码示例来源:origin: org.wso2.siddhi/siddhi-query-api
public SiddhiApp(String name) {
annotations.add(Annotation.annotation("info").element("name", name));
}
代码示例来源:origin: org.wso2.siddhi/siddhi-query-compiler
/**
* {@inheritDoc}
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*
* @param ctx
*/
@Override
public Annotation visitApp_annotation(@NotNull SiddhiQLParser.App_annotationContext ctx) {
Annotation annotation = new Annotation((String) visit(ctx.name()));
for (SiddhiQLParser.Annotation_elementContext elementContext : ctx.annotation_element()) {
annotation.element((Element) visit(elementContext));
}
populateQueryContext(annotation, ctx);
return annotation;
}
代码示例来源:origin: org.wso2.siddhi/siddhi-query-compiler
/**
* {@inheritDoc}
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*
* @param ctx
*/
@Override
public Annotation visitAnnotation(@NotNull SiddhiQLParser.AnnotationContext ctx) {
Annotation annotation = Annotation.annotation((String) visit(ctx.name()));
for (SiddhiQLParser.Annotation_elementContext elementContext : ctx.annotation_element()) {
annotation.element((Element) visit(elementContext));
}
for (SiddhiQLParser.AnnotationContext annotationContext : ctx.annotation()) {
annotation.annotation((Annotation) visit(annotationContext));
}
populateQueryContext(annotation, ctx);
return annotation;
}
内容来源于网络,如有侵权,请联系作者删除!