Uses of Class
org.gjt.sp.jedit.bsh.NameSpace
-
Uses of NameSpace in org.gjt.sp.jedit
Modifier and TypeMethodDescriptionstatic NameSpace
BeanShell.getNameSpace()
BeanShellFacade.getNameSpace()
Modifier and TypeMethodDescriptionstatic Object
Evaluates the specified BeanShell expression.Evaluates the specified BeanShell expression.static void
BeanShell._runScript
(View view, String path, Reader in, NameSpace namespace) Runs a BeanShell script.protected static Interpreter
BeanShellFacade.createInterpreter
(NameSpace nameSpace) static Object
Evaluates the specified BeanShell expression.Evaluates the specified BeanShell expression.protected abstract void
BeanShellFacade.resetDefaultVariables
(NameSpace namespace) static Object
BeanShell.runCachedBlock
(BshMethod method, View view, NameSpace namespace) Runs a cached block of code in the specified namespace.BeanShellFacade.runCachedBlock
(BshMethod method, T param, NameSpace namespace) Runs a cached block of code in the specified namespace.static void
Runs a BeanShell script.protected abstract void
BeanShellFacade.setupDefaultVariables
(NameSpace namespace, T param) protected void
BeanShellFacade.setVariable
(NameSpace nameSpace, String name, Object object) Set a beanshell variable in the namespace without overriding it -
Uses of NameSpace in org.gjt.sp.jedit.bsh
Modifier and TypeClassDescriptionclass
A namespace which maintains an external map of values held in variables in its scope.Modifier and TypeMethodDescriptionCallStack.get
(int depth) zero based.Interpreter.getNameSpace()
Get the global namespace of this interpreter.This.getNameSpace()
NameSpace.getParent()
Get the parent namespace.CallStack.pop()
Swap in the value as the new top of the stack and return the old value.CallStack.toArray()
CallStack.top()
Modifier and TypeMethodDescriptionstatic void
This.bind
(This ths, NameSpace namespace, Interpreter declaringInterpreter) Bind a This reference to a parent's namespace with the specified declaring interpreter.Spawn a non-interactive local interpreter to evaluate text in the specified namespace.Evaluate the string in the specified namespace.void
void
This is kind of crazy, but used by the setNameSpace command.abstract void
ClassGenerator.setInstanceNameSpaceParent
(Object instance, String className, NameSpace parent) Change the parent of the class instance namespace.void
ClassGeneratorImpl.setInstanceNameSpaceParent
(Object instance, String className, NameSpace parent) Change the parent of the class instance namespace.void
Interpreter.setNameSpace
(NameSpace globalNameSpace) Set the global namespace for this interpreter.void
Read text from fileName and eval it.Swap in the value as the new top of the stack and return the old value.ModifierConstructorDescriptionClassGeneratorUtil
(Modifiers classModifiers, String className, String packageName, Class superClass, Class[] interfaces, Variable[] vars, DelayedEvalBshMethod[] bshmethods, NameSpace classStaticNameSpace, boolean isInterface) ExternalNameSpace
(NameSpace parent, String name, Map externalMap) Interpreter
(Reader in, PrintStream out, PrintStream err, boolean interactive, NameSpace namespace) Interpreter
(Reader in, PrintStream out, PrintStream err, boolean interactive, NameSpace namespace, Interpreter parent, String sourceFileInfo) The main constructor.Interpreter
(ConsoleInterface console, NameSpace globalNameSpace) Construct a new interactive interpreter attached to the specified console using the specified parent namespace.NameSpace
(NameSpace parent, BshClassManager classManager, String name) protected
This
(NameSpace namespace, Interpreter declaringInterpreter) XThis
(NameSpace namespace, Interpreter declaringInterp)