Source source = (Source) visit(ctx.source()); if (source.isInnerStream) { throw newSiddhiParserException(ctx, "'#' cannot be used, because Tables can't be defined as " + List<SiddhiQLParser.Attribute_nameContext> attribute_names = ctx.attribute_name(); List<SiddhiQLParser.Attribute_typeContext> attribute_types = ctx.attribute_type(); for (int i = 0; i < attribute_names.size(); i++) { SiddhiQLParser.Attribute_nameContext attributeNameContext = attribute_names.get(i); for (SiddhiQLParser.AnnotationContext annotationContext : ctx.annotation()) { tableDefinition.annotation((Annotation) visit(annotationContext));
public final Definition_tableContext definition_table() throws RecognitionException { Definition_tableContext _localctx = new Definition_tableContext(_ctx, getState()); enterRule(_localctx, 14, RULE_definition_table); int _la;
@Override public StringBuilder visitDefinition_table(@NotNull SiddhiQLParser.Definition_tableContext ctx) { StringBuilder tableText = new StringBuilder(" { \"Table\": "); tableText.append(" [{ \"tableId\":\"").append(ctx.source().stream_id().getText()).append("\","); String table_Text = excapeCode(tokenStreamRewriter.getTokenStream().getText(ctx.getStart(), ctx.getStop())); tableText.append(" \"table_Text\":\"").append(table_Text).append("\","); tableText = new StringBuilder(tableText.substring(0, tableText.length() - 1)); tableText.append(" }]}"); return tableText; }
public TerminalNode TABLE() { return getToken(SiddhiQLParser.TABLE, 0); } public Definition_tableContext(ParserRuleContext parent, int invokingState) {
public TerminalNode DEFINE() { return getToken(SiddhiQLParser.DEFINE, 0); } public Attribute_typeContext attribute_type(int i) {
public List<Attribute_nameContext> attribute_name() { return getRuleContexts(Attribute_nameContext.class); } public TerminalNode TABLE() { return getToken(SiddhiQLParser.TABLE, 0); }
public List<Attribute_typeContext> attribute_type() { return getRuleContexts(Attribute_typeContext.class); } public AnnotationContext annotation(int i) {
public AnnotationContext annotation(int i) { return getRuleContext(AnnotationContext.class,i); } public Attribute_nameContext attribute_name(int i) {
public Attribute_typeContext attribute_type(int i) { return getRuleContext(Attribute_typeContext.class,i); } public List<Attribute_typeContext> attribute_type() {
public List<AnnotationContext> annotation() { return getRuleContexts(AnnotationContext.class); } public TerminalNode DEFINE() { return getToken(SiddhiQLParser.DEFINE, 0); }
public SourceContext source() { return getRuleContext(SourceContext.class,0); } public List<AnnotationContext> annotation() {
public Attribute_nameContext attribute_name(int i) { return getRuleContext(Attribute_nameContext.class,i); } public List<Attribute_nameContext> attribute_name() {