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