List<String> sqls = new ArrayList<>(nstmts);
for (StatementNode stmt : stmts) {
boolean stmtOkay = false, thisjarOkay = false;
if (undeploy) {
if (stmt instanceof DropAliasNode) {
DropAliasNode dropAlias = (DropAliasNode)stmt;
switch (dropAlias.getAliasType()) {
case PROCEDURE:
case FUNCTION:
stmtOkay = true;
{
TableName routineName = DDLHelper.convertName(server.getDefaultSchemaName(), dropAlias.getObjectName());
Routine routine = server.getAIS().getRoutine(routineName);
if (routine != null) {
SQLJJar sqljjar = routine.getSQLJJar();
thisjarOkay = ((sqljjar != null) &&
jarName.equals(sqljjar.getName()));