public void replace(AstNode node, AstNode newnode) { super.replace(node, newnode); if (this.arguments == node) { this.arguments = (ArgumentListNode) newnode; } }
/** * Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed * to work. * * @param depth The depth of this node in the tree */ public void printSubNodes(int depth) { if (SanityManager.DEBUG) { super.printSubNodes(depth); if (resultSet != null) { printLabel(depth, "resultSet: "); resultSet.treePrint(depth + 1); } } }
public ViewDefinition(StatementNode parsed, SQLParserContext parserContext) throws StandardException { if (parsed.getNodeType() != NodeTypes.CREATE_VIEW_NODE) { throw new StandardException("Parsed statement was not a view"); } definition = (CreateViewNode) parsed; subquery = (FromSubquery) parserContext .getNodeFactory() .getNode( NodeTypes.FROM_SUBQUERY, definition.getParsedQueryExpression(), definition.getOrderByList(), definition.getOffset(), definition.getFetchFirst(), getName().getTableName(), definition.getResultColumns(), null, parserContext); }
@Override public void execute() throws Exception { while (condition.evaluateBoolean()) body.execute(); return; }