This module provides access to class files compiled in the current workspace. Typically these files will be derived from .java files, but this module accepts any source that compiles to .class files.
This module depends on following other modules which will automatically be loaded.
Method | Description |
---|---|
compile() | Retrieve class for a given JRE resource. |
createInstance() | Create an instance of a given JRE resource. |
invokeStatic() | Invoke a static method on a given JRE resource. |
Class<T> compile(Object location)
Retrieve class for a given JRE resource.
class instance
Object createInstance(String location)
Create an instance of a given JRE resource. The default constructor is used to create the class instance.
class instance
Object invokeStatic(String location, String methodName)
Invoke a static method on a given JRE resource.
invoked method result