Package | Description |
---|---|
bsh | |
bsh.classpath |
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() |
protected void |
NameSpace.checkMethodModifiers(BshMethod method) |
protected void |
NameSpace.checkVariableModifiers(java.lang.String name,
bsh.Modifiers modifiers)
Dissallow static vars outside of a class
|
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.
|
static java.lang.Object |
NameSpace.getAssignableForm(java.lang.Object rhs,
java.lang.Class lhsType)
Determine if the RHS object can be assigned to the LHS type:
1) As in a legal Java assignment (as determined by
Reflect.isJavaAssignable()) through widening or promotion
2) Via special BeanShell extensions like interface generation or
(gag) numeric-style promotion of primitive wrappers
(e.g.
|
java.lang.Class |
NameSpace.getClass(java.lang.String name)
Load a class through this namespace taking into account imports.
|
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.
|
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)
Get the bsh method matching the specified signature declared in
this name space or a parent.
|
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 bsh.NameSpace.Variable |
NameSpace.getVariableImpl(java.lang.String name,
boolean recurse)
Locate a variable and return the Variable object with optional
recursion through parent name spaces.
|
int |
Primitive.intValue() |
protected boolean |
NameSpace.isVisible(BshMethod method)
This is a hook to allow ClassNameSpace to add functionality to
getMethod()
|
protected boolean |
NameSpace.isVisible(bsh.NameSpace.Variable var)
This is a hook to allow ClassNameSpace to add functionality here.
|
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 |
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,
bsh.Modifiers modifiers)
Declare a variable in the local scope and set its initial 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) |
Modifier and Type | Method and Description |
---|---|
void |
ClassManagerImpl.doSuperImport()
Support for "import *;"
Hide details in here as opposed to NameSpace.
|
? 2000 pat@pat.net :-)