Package org.parboiled.support
Class Checks
java.lang.Object
org.parboiled.support.Checks
Utility methods for grammar integrity checks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidThrows a GrammarException if the given condition is not met.static voidThrows a GrammarException if the given condition is not met.
-
Method Details
-
ensure
Throws a GrammarException if the given condition is not met.- Parameters:
condition- the conditionerrorMessageFormat- the error message formaterrorMessageArgs- the error message arguments
-
ensure
Throws a GrammarException if the given condition is not met.- Parameters:
condition- the conditionerrorMessage- the error message
-