polyglot.ast
Interface Assert

All Superinterfaces:
java.lang.Cloneable, Copy, JL, Node, NodeOps, Stmt, Term
All Known Implementing Classes:
Assert_c

public interface Assert
extends Stmt

An immutable representation of a assert statement.


Method Summary
 Expr cond()
          The condition to check.
 Assert cond(Expr cond)
          Set the condition to check.
 Expr errorMessage()
          The error message expression, or null.
 Assert errorMessage(Expr errorMessage)
          Set the error message expression.
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

cond

Expr cond()
The condition to check.


cond

Assert cond(Expr cond)
Set the condition to check.


errorMessage

Expr errorMessage()
The error message expression, or null.


errorMessage

Assert errorMessage(Expr errorMessage)
Set the error message expression.