pt.compiler.parser.ast.stmt
Class AssertStmt

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

public final class AssertStmt
extends Statement

Author:
Julio Vilmar Gesser

Constructor Summary
AssertStmt(int line, int column, Expression check, Expression msg)
           
 
Method Summary
<R,A> R
accept(GenericVisitor<R,A> v, A arg)
           
<A> void
accept(VoidVisitor<A> v, A arg)
           
 Expression getCheck()
           
 Expression getMessage()
           
 
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

AssertStmt

public AssertStmt(int line,
                  int column,
                  Expression check,
                  Expression msg)
Method Detail

getCheck

public Expression getCheck()

getMessage

public Expression getMessage()

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