Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / code / ast / EnhancedForStatement.java
@c-okada c-okada 2 days ago 787 bytes ・BlockのtoStringを簡潔に
package code.ast;

public class EnhancedForStatement extends Statement {

    private VariableDeclaration singleVariableDeclaration;
    private Statement expression;
    private Statement body;

    public VariableDeclaration getParameter() { return singleVariableDeclaration; }
    public void setParameter(VariableDeclaration parameter) { this.singleVariableDeclaration = parameter; }

    public Statement getExpression() { return expression; }
    public void setExpression(Statement expression) { this.expression = expression; }

    public Statement getBody() { return body; }
    public void setBody(Statement body) { this.body = body; }

    @Override
    public String toString() {
        return "for (" + singleVariableDeclaration + " : " + expression + ") " + body;
    }
}