Set<String> inherited = new LinkedHashSet<String>();
for (int i = 0; i < node.getChildCount(); i++) {
Tree p = node.getChild(i);
if (p.getType() == CREATE_SCHEMA_EXPR_INH) {
if (!p.getChild(0).getText().toLowerCase().equals("inherits")) {
throw new EPException("Expected 'inherits' keyword after create-schema clause but encountered '" + p.getChild(0).getText() + "'");
}
for (int j = 1; j < p.getChildCount(); j++) {
if (p.getChild(j).getType() == EXPRCOL) {
for (int k = 0; k < p.getChild(j).getChildCount(); k++) {
inherited.add(p.getChild(j).getChild(k).getText());
}
}
}
}
}
// get qualifier
boolean variant = false;
for (int i = 0; i < node.getChildCount(); i++) {
Tree p = node.getChild(i);
if (p.getType() == CREATE_SCHEMA_EXPR_QUAL) {
if (!p.getChild(0).getText().toLowerCase().equals("variant")) {
throw new EPException("Expected 'variant' keyword after create-schema clause but encountered '" + p.getChild(0).getText() + "'");
}
variant = true;
}
}
statementSpec.getStreamSpecs().add(new FilterStreamSpecRaw(new FilterSpecRaw(Object.class.getName(), Collections.<ExprNode>emptyList(), null), Collections.<ViewSpec>emptyList(), null, new StreamSpecOptions()));