Package | Description |
---|---|
org.gjt.sp.jedit |
This package contains jEdit 4's core classes.
|
org.gjt.sp.jedit.bsh |
Lightweight Scripting for Java.
|
org.gjt.sp.jedit.bsh.classpath |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
BeanShellFacade.resetDefaultVariables(NameSpace namespace) |
protected abstract void |
BeanShellFacade.setupDefaultVariables(NameSpace namespace,
T param) |
protected void |
BeanShellFacade.setVariable(NameSpace nameSpace,
java.lang.String name,
java.lang.Object object)
Set a beanshell variable in the namespace without overriding it
|
Modifier and Type | Class and Description |
---|---|
static class |
Capabilities.Unavailable
An attempt was made to use an unavailable capability supported by
an optional package.
|
class |
ClassPathException |
class |
UtilTargetError
UtilTargetError is an error corresponding to a TargetError but thrown by a
utility or other class that does not have the caller context (Node)
available to it.
|
Modifier and Type | Method and Description |
---|---|
protected static UtilEvalError |
BshClassManager.cmUnavailable() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
Primitive.binaryOperation(java.lang.Object obj1,
java.lang.Object obj2,
int kind)
Perform a binary operation on two Primitives or wrapper types.
|
boolean |
Primitive.booleanValue() |
Primitive |
Primitive.castToType(java.lang.Class toType,
int operation)
Cast this bsh.Primitive value to a new bsh.Primitive value
This is usually a numeric type cast.
|
protected void |
BshClassManager.doSuperImport()
Support for "import *;"
Hide details in here as opposed to NameSpace.
|
void |
NameSpace.doSuperImport()
Perform "import *;" causing the entire classpath to be mapped.
|
java.lang.Object |
NameSpace.get(java.lang.String name,
Interpreter interpreter)
Resolve name to an object through this namespace.
|
java.lang.Class |
NameSpace.getClass(java.lang.String name)
Load a class through this namespace taking into account imports.
|
static ClassGenerator |
ClassGenerator.getClassGenerator() |
protected java.lang.String |
BshClassManager.getClassNameByUnqName(java.lang.String name)
Return the name or null if none is found,
Throw an ClassPathException containing detail if name is ambigous.
|
java.lang.Object |
NameSpace.getCommand(java.lang.String name,
java.lang.Class[] argTypes,
Interpreter interpreter)
A command is a scripted method or compiled command class implementing a
specified method signature.
|
protected BshMethod |
NameSpace.getImportedMethod(java.lang.String name,
java.lang.Class[] sig) |
protected Variable |
NameSpace.getImportedVar(java.lang.String name) |
java.lang.Object |
This.getInterface(java.lang.Class clas)
Get a version of this scripted object implementing the specified
interface.
|
java.lang.Object |
This.getInterface(java.lang.Class[] ca)
Get a version of this scripted object implementing the specified
interfaces.
|
BshMethod |
NameSpace.getMethod(java.lang.String name,
java.lang.Class[] sig) |
BshMethod |
NameSpace.getMethod(java.lang.String name,
java.lang.Class[] sig,
boolean declaredOnly)
Get the bsh method matching the specified signature declared in
this name space or a parent.
|
BshMethod |
ExternalNameSpace.getMethod(java.lang.String name,
java.lang.Class[] sig,
boolean declaredOnly) |
java.lang.Object |
NameSpace.getVariable(java.lang.String name)
Get the specified variable in this namespace or a parent namespace.
|
java.lang.Object |
NameSpace.getVariable(java.lang.String name,
boolean recurse)
Get the specified variable in this namespace.
|
protected Variable |
NameSpace.getVariableImpl(java.lang.String name,
boolean recurse)
Locate a variable and return the Variable object with optional
recursion through parent name spaces.
|
protected Variable |
ExternalNameSpace.getVariableImpl(java.lang.String name,
boolean recurse) |
int |
Primitive.intValue() |
java.lang.Object |
ClassGeneratorImpl.invokeSuperclassMethod(BshClassManager bcm,
java.lang.Object instance,
java.lang.String methodName,
java.lang.Object[] args) |
abstract java.lang.Object |
ClassGenerator.invokeSuperclassMethod(BshClassManager bcm,
java.lang.Object instance,
java.lang.String methodName,
java.lang.Object[] args)
Invoke a super.method() style superclass method on an object instance.
|
static java.lang.Object |
ClassGeneratorImpl.invokeSuperclassMethodImpl(BshClassManager bcm,
java.lang.Object instance,
java.lang.String methodName,
java.lang.Object[] args) |
java.lang.Number |
Primitive.numberValue() |
void |
BshClassManager.reloadAllClasses()
Overlay the entire path with a new class loader.
|
void |
BshClassManager.reloadClasses(java.lang.String[] classNames)
Reloading classes means creating a new classloader and using it
whenever we are asked for classes in the appropriate space.
|
void |
BshClassManager.reloadPackage(java.lang.String pack)
Reload all classes in the specified package: e.g.
|
void |
BshClassManager.setClassPath(java.net.URL[] cp)
Set a new base classpath and create a new base classloader.
|
void |
NameSpace.setMethod(java.lang.String name,
BshMethod method)
Note: this is primarily for internal use.
|
void |
ExternalNameSpace.setMethod(java.lang.String name,
BshMethod method) |
void |
NameSpace.setTypedVariable(java.lang.String name,
java.lang.Class type,
java.lang.Object value,
boolean isFinal)
Deprecated.
See #setTypedVariable( String, Class, Object, Modifiers )
|
void |
NameSpace.setTypedVariable(java.lang.String name,
java.lang.Class type,
java.lang.Object value,
Modifiers modifiers)
Declare a variable in the local scope and set its initial value.
|
void |
ExternalNameSpace.setTypedVariable(java.lang.String name,
java.lang.Class type,
java.lang.Object value,
Modifiers modifiers) |
void |
Variable.setValue(java.lang.Object value,
int context)
Set the value of the typed variable.
|
void |
NameSpace.setVariable(java.lang.String name,
java.lang.Object value) |
void |
NameSpace.setVariable(java.lang.String name,
java.lang.Object value,
boolean strictJava)
Set the variable through this namespace.
|
static Primitive |
Primitive.unaryOperation(Primitive val,
int kind) |
protected java.lang.Object |
NameSpace.unwrapVariable(Variable var)
Unwrap a variable to its value.
|
Modifier and Type | Method and Description |
---|---|
void |
ClassManagerImpl.doSuperImport()
Support for "import *;"
Hide details in here as opposed to NameSpace.
|