public static bool IsNestedPropertyWithNonSimpleLead(EsperEPL2GrammarParser.EventPropertyContext ctx) { if (ctx.eventPropertyAtomic().Length == 1) { return(false); } var atomic = ctx.eventPropertyAtomic()[0]; return(atomic.lb != null || atomic.lp != null || atomic.q1 != null); }
public static String GetPropertyName(EsperEPL2GrammarParser.EventPropertyContext ctx, int startNode) { var buf = new StringBuilder(); for (var i = startNode; i < ctx.ChildCount; i++) { var tree = ctx.GetChild(i); buf.Append(tree.GetText()); } return(buf.ToString()); }