예제 #1
0
 @Override
 public String toString() {
   return String.format(
       "%s (%s)",
       gateInstanceName == null ? "" : gateInstanceName.toString(),
       StringUtils.getInstance().ListToString(terminalList, ","));
 }
예제 #2
0
 @Override
 public ExpressionType validateSemantics() {
   if (gateInstanceName != null) gateInstanceName.validateSemantics();
   for (Expression expression : terminalList) {
     expression.validateSemantics();
   }
   return null;
 }
예제 #3
0
  @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);
  }