Package blockly_robot.robot.utils
Class PackageClassLoader
java.lang.Object
blockly_robot.robot.utils.PackageClassLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <O> OinstantiateClass(String relClassPath) Instantiates a class based on the given relative class path.
-
Constructor Details
-
PackageClassLoader
public PackageClassLoader()
-
-
Method Details
-
instantiateClass
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
-