pt.compiler.parser.ast.stmt
Class ForStmt

java.lang.Object
  extended by pt.compiler.parser.ast.Node
      extended by pt.compiler.parser.ast.stmt.Statement
          extended by pt.compiler.parser.ast.stmt.ForStmt

public final class ForStmt
extends Statement

Author:
Julio Vilmar Gesser

Constructor Summary
ForStmt(int line, int column, java.util.List<Expression> init, Expression compare, java.util.List<Expression> update, Statement body)
           
 
Method Summary
<R,A> R
accept(GenericVisitor<R,A> v, A arg)
           
<A> void
accept(VoidVisitor<A> v, A arg)
           
 Statement getBody()
           
 Expression getCompare()
           
 java.util.List<Expression> getInit()
           
 java.util.List<Expression> getUpdate()
           
 
Methods inherited from class pt.compiler.parser.ast.Node
getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForStmt

public ForStmt(int line,
               int column,
               java.util.List<Expression> init,
               Expression compare,
               java.util.List<Expression> update,
               Statement body)
Method Detail

getInit

public java.util.List<Expression> getInit()

getCompare

public Expression getCompare()

getUpdate

public java.util.List<Expression> getUpdate()

getBody

public Statement getBody()

accept

public <A> void accept(VoidVisitor<A> v,
                       A arg)
Overrides:
accept in class Node

accept

public <R,A> R accept(GenericVisitor<R,A> v,
                      A arg)
Overrides:
accept in class Node