Module com.github.rvesse.airline
Interface GlobalRestriction
- All Known Implementing Classes:
CommandRequiredRestriction
,NoMissingOptionValuesRestriction
,None
,NoOptionLikeValuesRestriction
,NoUnexpectedArgumentsRestriction
public interface GlobalRestriction
Interface for restrictions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> void
validate
(ParseState<T> state) Validates the parser state
-
Field Details
-
DEFAULTS
-
-
Method Details
-
validate
Validates the parser stateShould throw an exception if the restriction is violated, otherwise should simply return
- Parameters:
state
- Parser state
-