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); } }
public void accept(Visitor v) { v.visitColorArrayType(this); }
public void accept(Visitor v) { v.visit(this); }
public void accept(Scope scope, Visitor v) throws Exception { v.visit(this); }