package nxm.sys.inc;

import java.lang.reflect.Method;

/** ****** BCEL independent version **********************
 *  In JDK 8+ the BCEL jar is needed to create KeyValuePairs
 *  lambda expressions
 *
 *  @author Jeanette McCall
 *  @since NeXtMidas 4.0.0
 */
interface KeyValuePairSwapBCEL {

  /** Gets the parameter names using Apache BCEL if available, otherwise try means that only works with JDK 8.
  *
  *  @param c    The class.
  *  @param m    The method.
  *  @param fn   The file name.
  *  @param path The file path (including name and extension)
  *  @throws ReflectiveOperationException On error.
  *  @since NextMidas 3.9.3 for NXM-3560 JDK breakage
  */
  @InternalUseOnly
 static String[] getParamNames (Class<?> c, Method m, String fn, String path) throws ReflectiveOperationException {
    return KeyValuePairSupport.getParamNamesBasic (c, m);
 }

}
