pt.compiler.parser.ast.stmt
Class IfStmt

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.IfStmt

public final class IfStmt
extends Statement

Author:
Julio Vilmar Gesser

Constructor Summary
IfStmt(int line, int column, Expression condition, Statement thenStmt, Statement elseStmt)
           
 
Method Summary
<R,A> R
accept(GenericVisitor<R,A> v, A arg)
           
<A> void
accept(VoidVisitor<A> v, A arg)
           
 Expression getCondition()
           
 Statement getElseStmt()
           
 Statement getThenStmt()
           
 
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

IfStmt

public IfStmt(int line,
              int column,
              Expression condition,
              Statement thenStmt,
              Statement elseStmt)
Method Detail

getCondition

public Expression getCondition()

getThenStmt

public Statement getThenStmt()

getElseStmt

public Statement getElseStmt()

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