Module com.github.rvesse.airline
Class NoUnexpectedArgumentsRestriction
java.lang.Object
com.github.rvesse.airline.restrictions.global.NoUnexpectedArgumentsRestriction
- All Implemented Interfaces:
GlobalRestriction
-
Field Summary
Fields inherited from interface com.github.rvesse.airline.restrictions.GlobalRestriction
DEFAULTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> void
validate
(ParseState<T> state) Validates the parser state
-
Constructor Details
-
NoUnexpectedArgumentsRestriction
public NoUnexpectedArgumentsRestriction()
-
-
Method Details
-
validate
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
-