public boolean hasConnection(String name) { for (Connector c : connectors) { if (name.equals(c.getName())) { return c.hasConnection(); } } return false; }
protected void compileNext(PrintWriter out, boolean debug) throws CompileException { for (Connector c : connectors) { if (c.isOutgoing() && c.hasConnection()) { c.getConnection().compile(out, debug); } else if (c.isOutgoing()) { Log.i("Tern", "couldn't complete after " + this.name); this.LAST = true; } } }
public boolean hasOutgoingConnection() { for (Connector c : connectors) { if (c.isOutgoing() && c.hasConnection()) return true; } return false; }