Class NoUnexpectedArgumentsRestriction
java.lang.Object
com.github.rvesse.airline.restrictions.global.NoUnexpectedArgumentsRestriction
- All Implemented Interfaces:
GlobalRestriction
-
Field Summary
Fields inherited from interface GlobalRestriction
DEFAULTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidvalidate(ParseState<T> state) Validates the parser state
-
Constructor Details
-
NoUnexpectedArgumentsRestriction
public NoUnexpectedArgumentsRestriction()
-
-
Method Details
-
validate
Description copied from interface:GlobalRestrictionValidates the parser stateShould throw an exception if the restriction is violated, otherwise should simply return
- Specified by:
validatein interfaceGlobalRestriction- Parameters:
state- Parser state
-