Class PackageClassLoader

java.lang.Object
blockly_robot.robot.utils.PackageClassLoader

public class PackageClassLoader extends Object
  • Constructor Details

    • PackageClassLoader

      public PackageClassLoader()
  • Method Details

    • instantiateClass

      public static <O> O instantiateClass(String relClassPath) throws ReflectiveOperationException
      Instantiates a class based on the given relative class path.
      Type Parameters:
      O - the type of the object to be instantiated
      Parameters:
      relClassPath - the relative class path (relative to the package blockly_robot.jwinf)
      Returns:
      an instance of the specified class
      Throws:
      ReflectiveOperationException - if the class cannot be found or instantiated