Class NoUnexpectedArgumentsRestriction

java.lang.Object
com.github.rvesse.airline.restrictions.global.NoUnexpectedArgumentsRestriction
All Implemented Interfaces:
GlobalRestriction

public class NoUnexpectedArgumentsRestriction extends Object implements GlobalRestriction
  • Constructor Details

    • NoUnexpectedArgumentsRestriction

      public NoUnexpectedArgumentsRestriction()
  • Method Details

    • validate

      public <T> void validate(ParseState<T> state)
      Description copied from interface: GlobalRestriction
      Validates the parser state

      Should throw an exception if the restriction is violated, otherwise should simply return

      Specified by:
      validate in interface GlobalRestriction
      Parameters:
      state - Parser state