类的使用
bsh.CallStack
使用CallStack的程序包
-
bsh中CallStack的使用
修饰符和类型方法说明CallStack.copy()
Occasionally we need to freeze the callstack for error reporting purposes, etc.修饰符和类型方法说明BSHPackageDeclaration.eval
(CallStack callstack, Interpreter interpreter) abstract Class
ClassGenerator.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.ClassGeneratorImpl.generateClass
(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter) static Class
ClassGeneratorImpl.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.BshMethod.invoke
(Object[] argValues, Interpreter interpreter, CallStack callstack, bsh.SimpleNode callerInfo) Invoke the bsh method with the specified args, interpreter ref, and callstack.NameSpace.invokeMethod
(String methodName, Object[] args, Interpreter interpreter, CallStack callstack, bsh.SimpleNode callerInfo) This method simply delegates to This.invokeMethod();This.invokeMethod
(String methodName, Object[] args, Interpreter interpreter, CallStack callstack, bsh.SimpleNode callerInfo, boolean declaredOnly) Invoke a method in this namespace with the specified args, interpreter reference, callstack, and caller info.UtilEvalError.toEvalError
(bsh.SimpleNode node, CallStack callstack) UtilEvalError.toEvalError
(String msg, bsh.SimpleNode node, CallStack callstack) Re-throw as an eval error, prefixing msg to the message and specifying the node.UtilTargetError.toEvalError
(String msg, bsh.SimpleNode node, CallStack callstack) Override toEvalError to throw TargetError type.限定符构造器说明TargetError
(String msg, Throwable t, bsh.SimpleNode node, CallStack callstack, boolean inNativeCode) TargetError
(Throwable t, bsh.SimpleNode node, CallStack callstack)