Interface GlobalRestriction

All Known Implementing Classes:
CommandRequiredRestriction, NoMissingOptionValuesRestriction, None, NoOptionLikeValuesRestriction, NoUnexpectedArgumentsRestriction

public interface GlobalRestriction
Interface for restrictions
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GlobalRestriction[]
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    validate(ParseState<T> state)
    Validates the parser state
  • Field Details

  • Method Details

    • validate

      <T> void validate(ParseState<T> state)
      Validates the parser state

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

      Parameters:
      state - Parser state