@Override public String toString() { return String.format( "%s (%s)", gateInstanceName == null ? "" : gateInstanceName.toString(), StringUtils.getInstance().ListToString(terminalList, ",")); }
@Override public ExpressionType validateSemantics() { if (gateInstanceName != null) gateInstanceName.validateSemantics(); for (Expression expression : terminalList) { expression.validateSemantics(); } return null; }
@Override public VNode getCopy() { GateInstanceName name = null; if (gateInstanceName != null) name = (GateInstanceName) gateInstanceName.getCopy(); ArrayList<Expression> terminals = new ArrayList<Expression>(); for (Expression expression : terminalList) { terminals.add((Expression) expression.getCopy()); } return new GateInstance(name, terminals, line, column); }