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