Module com.github.rvesse.airline
Class CommandRequiredRestriction
- java.lang.Object
-
- com.github.rvesse.airline.restrictions.global.CommandRequiredRestriction
-
- All Implemented Interfaces:
GlobalRestriction
public class CommandRequiredRestriction extends java.lang.Object implements GlobalRestriction
-
-
Field Summary
-
Fields inherited from interface com.github.rvesse.airline.restrictions.GlobalRestriction
DEFAULTS
-
-
Constructor Summary
Constructors Constructor Description CommandRequiredRestriction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
validate(ParseState<T> state)
Validates the parser state
-
-
-
Method Detail
-
validate
public <T> void validate(ParseState<T> state)
Description copied from interface:GlobalRestriction
Validates the parser stateShould throw an exception if the restriction is violated, otherwise should simply return
- Specified by:
validate
in interfaceGlobalRestriction
- Parameters:
state
- Parser state
-
-