| Modifier and Type | Field and Description |
|---|---|
| private static ClassGenerator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Class | generateClass(String name, Modifiers modifiers, Class<T>[] interfaces, Class<T> superClass, BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter)
Parse the BSHBlock for the class definition and generate the class. |
| public static ClassGenerator | |
| public abstract Object | invokeSuperclassMethod(BshClassManager bcm, Object instance, String methodName, Object[] args)
Invoke a super.method() style superclass method on an object instance. |
| public abstract void | setInstanceNameSpaceParent(Object instance, String className, NameSpace parent)
Change the parent of the class instance namespace. |
| cg | back to summary |
|---|---|
| private static ClassGenerator cg | |
| ClassGenerator | back to summary |
|---|---|
| public ClassGenerator() | |
| generateClass | back to summary |
|---|---|
| public abstract Class Parse the BSHBlock for the class definition and generate the class. | |
| getClassGenerator | back to summary |
|---|---|
| public static ClassGenerator getClassGenerator() throws UtilEvalError | |
| invokeSuperclassMethod | back to summary |
|---|---|
| public abstract Object invokeSuperclassMethod(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, ReflectError, InvocationTargetException Invoke a super.method() style superclass method on an object instance. This is not a normal function of the Java reflection API and is provided by generated class accessor methods. | |
| setInstanceNameSpaceParent | back to summary |
|---|---|
| public abstract void setInstanceNameSpaceParent(Object instance, String className, NameSpace parent) Change the parent of the class instance namespace. This is currently used for inner class support. Note This method will likely be removed in the future. | |