程序包 bsh
类 ClassGeneratorImpl
java.lang.Object
bsh.ClassGenerator
bsh.ClassGeneratorImpl
- 作者:
- Pat Niemeyer (pat@pat.net)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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.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.从类继承的方法 bsh.ClassGenerator
getClassGenerator
-
构造器详细资料
-
ClassGeneratorImpl
public ClassGeneratorImpl()
-
-
方法详细资料
-
generateClass
public Class generateClass(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter) throws EvalError 从类复制的说明:ClassGenerator
Parse the BSHBlock for the class definition and generate the class.- 指定者:
generateClass
在类中ClassGenerator
- 抛出:
EvalError
-
invokeSuperclassMethod
public Object invokeSuperclassMethod(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, bsh.ReflectError, InvocationTargetException 从类复制的说明:ClassGenerator
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.- 指定者:
invokeSuperclassMethod
在类中ClassGenerator
- 抛出:
UtilEvalError
bsh.ReflectError
InvocationTargetException
-
setInstanceNameSpaceParent
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.- 指定者:
setInstanceNameSpaceParent
在类中ClassGenerator
-
generateClassImpl
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.- 抛出:
EvalError
-
invokeSuperclassMethodImpl
public static Object invokeSuperclassMethodImpl(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, bsh.ReflectError, InvocationTargetException - 抛出:
UtilEvalError
bsh.ReflectError
InvocationTargetException
-