@Override public void visit(WindowSubPropertyNode n) { Tree astNode = n.getTree(); String subPropName = nodeToString(astNode.getChild(0)); if (subPropName.equalsIgnoreCase("column")) { _PropertyTableStack.push(NULL_TABLE); return; } // Generic properties if (_PropertyTableStack.peek() == NULL_TABLE) return; // if (astNode.getChild(1).getChildCount() > 1) // throw new ParseException("Parser error: multivalue property: " + subPropName, // astNode.getLine(), astNode.getCharPositionInLine()); String value = nodeToString(astNode.getChild(1)); _PropertyTableStack.peek().put(subPropName, value); }
@Override public void unvisit(WindowSubPropertyNode n) { Tree astNode = n.getTree(); String subPropName = nodeToString(astNode.getChild(0)); if (subPropName.equalsIgnoreCase("column")) _PropertyTableStack.pop(); }