Class ReflectionsManager

java.lang.Object
swervelib.parser.deserializer.ReflectionsManager

public class ReflectionsManager extends Object
Create classes only if the vendor dep exists.
  • Constructor Details

    • ReflectionsManager

      public ReflectionsManager()
  • Method Details

    • checkIfVendorLibExists

      public static boolean checkIfVendorLibExists(ReflectionsManager.VENDOR vendor)
      Check if the vendordep exists.
      Parameters:
      vendor - Vendor to check for their library.
      Returns:
      Boolean on existence of their library.
    • create

      public static <T> T create(ReflectionsManager.VENDOR v, String className, Class<?>[] parameterTypes, Object[] parameters)
      Create objects if the vendordep exists. Throw an exception when they dont.
      Type Parameters:
      T - Wrapper type.
      Parameters:
      v - Vendor to check if the vendordep exists.
      className - Wrapper classname to create.
      parameterTypes - Parameter types for the wrappers constructor.
      parameters - Parameters for the wrappers constructor
      Returns:
      Wrapper object.