polyglot.util
Class Assert

java.lang.Object
  extended by polyglot.util.Assert

public final class Assert
extends java.lang.Object

Assert Overview: Assert contains a few methods helpful for implementing assertions in Java.


Method Summary
static void check(boolean ok)
          static void check(boolean ok) Throws an error if not .
static void check(java.lang.String condition, boolean ok)
          static void check(String condition, boolean ok) Asserts that holds -- in other words, that is true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

check

public static void check(boolean ok)
static void check(boolean ok) Throws an error if not .


check

public static void check(java.lang.String condition,
                         boolean ok)
static void check(String condition, boolean ok) Asserts that holds -- in other words, that is true. Throws an error otherwise.