Package org.parboiled.support
Class Checks
java.lang.Object
org.parboiled.support.Checks
Utility methods for grammar integrity checks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Throws a GrammarException if the given condition is not met.static void
Throws 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
-