Package org.parboiled.support
Class Checks
- java.lang.Object
-
- org.parboiled.support.Checks
-
public final class Checks extends java.lang.ObjectUtility methods for grammar integrity checks.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidensure(boolean condition, java.lang.String errorMessage)Throws a GrammarException if the given condition is not met.static voidensure(boolean condition, java.lang.String errorMessageFormat, java.lang.Object... errorMessageArgs)Throws a GrammarException if the given condition is not met.
-
-
-
Method Detail
-
ensure
public static void ensure(boolean condition, java.lang.String errorMessageFormat, java.lang.Object... errorMessageArgs)Throws a GrammarException if the given condition is not met.- Parameters:
condition- the conditionerrorMessageFormat- the error message formaterrorMessageArgs- the error message arguments
-
ensure
public static void ensure(boolean condition, java.lang.String errorMessage)Throws a GrammarException if the given condition is not met.- Parameters:
condition- the conditionerrorMessage- the error message
-
-