@SafeVarargs public final Token<TokenType> expect(TokenType... expected) throws SimpleParserException {
  if (hasType(expected))   return this;
  throw new SimpleParserException(line,column,"Expected " + Arrays.toString(expected) + ", but got "+ toString());
}

@ SafeVarargs public final Token < TokenType > expect ( TokenType ... expected ) throws SimpleParserException { if ( hasType ( expected ) ) return this ; throw new SimpleParserException ( line , column , "Expected " + Arrays . toString ( expected ) + ", but got " + toString ( ) ) ; }
ensures that this token has one of the given expected types .
