package de.dhbwstuttgart.syntaxtree.statement; import de.dhbwstuttgart.parser.NullToken; import de.dhbwstuttgart.syntaxtree.StatementVisitor; import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric; import de.dhbwstuttgart.syntaxtree.type.Void; import org.antlr.v4.runtime.Token; public class ForEachStmt extends Statement { public final Statement statement; public final Expression expression; public final Statement block; public ForEachStmt(Token offset, Statement stmt, Expression expression, Statement block) { super(new Void(new NullToken()), offset); this.statement = stmt; this.expression = expression; this.block = block; } @Override public void accept(StatementVisitor visitor) { visitor.visit(this); } }