public abstract class ClassGenerator extends Object
Constructor and Description |
---|
ClassGenerator() |
Modifier and Type | Method and Description |
---|---|
abstract Class |
generateClass(String name,
Modifiers modifiers,
Class[] interfaces,
Class superClass,
bsh.BSHBlock block,
boolean isInterface,
CallStack callstack,
Interpreter interpreter)
Parse the BSHBlock for the class definition and generate the class.
|
static ClassGenerator |
getClassGenerator() |
abstract Object |
invokeSuperclassMethod(BshClassManager bcm,
Object instance,
String methodName,
Object[] args)
Invoke a super.method() style superclass method on an object instance.
|
abstract void |
setInstanceNameSpaceParent(Object instance,
String className,
NameSpace parent)
Change the parent of the class instance namespace.
|
public static ClassGenerator getClassGenerator() throws UtilEvalError
UtilEvalError
public abstract Class generateClass(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter) throws EvalError
EvalError
public abstract Object invokeSuperclassMethod(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, bsh.ReflectError, InvocationTargetException
UtilEvalError
bsh.ReflectError
InvocationTargetException
? 2000-2005 pat@pat.net :-)