package AST;

import java.io.*;

public class ForStatement extends Statement {

    public ForStatement(Variable v, Type exprType, StatementList statementList) {
       this.v = v;
       this.exprType = exprType;
       this.statementList = statementList;
    }

    public void genC( PrintWriter out, int indent ) {
    }

    public Variable getV() {
       return v;
    }

    public Type getExprType() {
       return exprType;
    }

    public boolean getChangeIndex() {
       return changeIndex;
    }

    public void setChangeIndex( boolean changeIndex ) {
       this.changeIndex = changeIndex;
    }

    private Variable v;
    private Type exprType;
    private boolean changeIndex;
    private StatementList statementList;

}
