Class ConstructorPropertyNameExtractor

java.lang.Object
com.gigaspaces.internal.reflection.fast.ConstructorPropertyNameExtractor

public class ConstructorPropertyNameExtractor extends Object
Since:
9.6
Author:
Dan Kilman
  • Constructor Details

    • ConstructorPropertyNameExtractor

      public ConstructorPropertyNameExtractor()
  • Method Details

    • getParameterNames

      public static String[] getParameterNames(Constructor<?> constructor) throws IOException
      Returns a list containing one parameter name for each argument accepted by the given constructor. If the class was compiled with debugging symbols, the parameter names will match those provided in the Java source code. Otherwise, a generic "arg" parameter name is generated ("arg0" for the first argument, "arg1" for the second...). This method relies on the constructor's class loader to locate the bytecode resource that defined its class.
      Throws:
      IOException