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. |
java.lang.Class compile(java.lang.Object location)
Retrieve class for a given JRE resource.
Parameter | Type | Description |
---|---|---|
location | java.lang.Object | file location to look for |
Returns:java.lang.Class ... class instance
java.lang.Object createInstance(java.lang.String location)
Create an instance of a given JRE resource. The default constructor is used to create the class instance.
Parameter | Type | Description |
---|---|---|
location | java.lang.String | file location to look for |
Returns:java.lang.Object ... class instance
java.lang.Object invokeStatic(java.lang.String location, java.lang.String methodName)
Invoke a static method on a given JRE resource.
Parameter | Type | Description |
---|---|---|
location | java.lang.String | file location to look for |
methodName | java.lang.String | method to invoke |
Returns:java.lang.Object ... invoked method result