类的使用
bsh.Interpreter
使用Interpreter的程序包
-
bsh中Interpreter的使用
返回Interpreter的bsh中的方法参数类型为Interpreter的bsh中的方法修饰符和类型方法说明static void
This.bind
(This ths, NameSpace namespace, Interpreter declaringInterpreter) Bind a This reference to a parent's namespace with the specified declaring interpreter.static BshClassManager
BshClassManager.createClassManager
(Interpreter interpreter) Create a new instance of the class manager.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.NameSpace.get
(String name, Interpreter interpreter) Resolve name to an object through this namespace.NameSpace.getCommand
(String name, Class[] argTypes, Interpreter interpreter) A command is a scripted method or compiled command class implementing a specified method signature.NameSpace.getGlobal
(Interpreter declaringInterpreter) Get the top level namespace or this namespace if we are the top.NameSpace.getSuper
(Interpreter declaringInterpreter) Get the parent namespace' This reference or this namespace' This reference if we are the top.BshMethod.invoke
(Object[] argValues, Interpreter interpreter) Invoke the declared method with the specified arguments and interpreter reference.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) Invoke a method in this namespace with the specified args and interpreter reference.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.参数类型为Interpreter的bsh中的构造器限定符构造器说明Interpreter
(Reader in, PrintStream out, PrintStream err, boolean interactive, NameSpace namespace, Interpreter parent, String sourceFileInfo) The main constructor.protected
This
(NameSpace namespace, Interpreter declaringInterpreter) XThis
(NameSpace namespace, Interpreter declaringInterp)