List<ParameterNode> params, int[] paramTypes) {
if (stmt.getNodeType() != NodeTypes.EXPLAIN_STATEMENT_NODE)
return null;
StatementNode innerStmt = ((ExplainStatementNode)stmt).getStatement();
if (compiler == null)
throw new UnsupportedExplainException();
if (!(innerStmt instanceof DMLStatementNode))
throw new UnableToExplainException ();
return new PostgresExplainStatement(compiler);
}