Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
bsh.ClassGenerator
bsh.ClassGeneratorImpl
public class ClassGeneratorImpl
extends ClassGenerator
Method Summary | |
Class |
|
static Class |
|
Object |
|
static Object |
|
void |
|
Methods inherited from class bsh.ClassGenerator | |
generateClass , getClassGenerator , invokeSuperclassMethod , setInstanceNameSpaceParent |
public Class generateClass(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter) throws EvalError
- Overrides:
- generateClass in interface ClassGenerator
public static Class generateClassImpl(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter) throws EvalError
Parse the BSHBlock for for the class definition and generate the class using ClassGenerator.
public Object invokeSuperclassMethod(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, bsh.ReflectError, InvocationTargetException
- Overrides:
- invokeSuperclassMethod in interface ClassGenerator
public static Object invokeSuperclassMethodImpl(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, bsh.ReflectError, InvocationTargetException
public 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.
- Overrides:
- setInstanceNameSpaceParent in interface ClassGenerator