KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ast > Assert


1 package polyglot.ast;
2
3 import java.util.List JavaDoc;
4
5 /**
6  * An immutable representation of a <code>assert</code> statement.
7  */

8 public interface Assert extends Stmt
9 {
10     /** The condition to check. */
11     Expr cond();
12
13     /** Set the condition to check. */
14     Assert cond(Expr cond);
15
16     /** The error message expression, or null. */
17     Expr errorMessage();
18
19     /** Set the error message expression. */
20     Assert errorMessage(Expr errorMessage);
21 }
22
Popular Tags