Пример #1
0
  public void accept(Scope scope, Visitor v) throws Exception {
    v.visit(scope, this);

    if (!(e1.getType().equals(IntegerType.getTypeIdentifier()))) {
      throw new InvalidTypeException(
          "Invalid value, it should an Integer, but was "
              + e1.getType()
              + ". At line "
              + super.line_number);
    }

    if (!(e2.getType().equals(IntegerType.getTypeIdentifier()))) {
      throw new InvalidTypeException(
          "Invalid value, it should an Integer, but was "
              + e2.getType()
              + ". At line "
              + super.line_number);
    }
  }
Пример #2
0
 public void accept(Visitor v) {
   v.visitColorArrayType(this);
 }
Пример #3
0
 public void accept(Visitor v) {
   v.visit(this);
 }
Пример #4
0
 public void accept(Scope scope, Visitor v) throws Exception {
   v.visit(this);
 }