| Package | Description |
|---|---|
| bsh | |
| bsh.classpath | |
| bsh.security |
| 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 |
|---|---|
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.
|
static java.lang.Object |
BshArray.concat(java.lang.Object lhs,
java.lang.Object rhs)
Concatenate two arrays.
|
protected Variable |
NameSpace.createVariable(java.lang.String name,
java.lang.Class<?> type,
bsh.LHS lhs)
Creates the variable.
|
protected Variable |
NameSpace.createVariable(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object value,
Modifiers mods)
Creates the variable.
|
protected Variable |
NameSpace.createVariable(java.lang.String name,
java.lang.Object value,
Modifiers mods)
Creates the variable.
|
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.
|
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)
Gets the imported method.
|
protected Variable |
NameSpace.getImportedVar(java.lang.String name)
Gets the imported var.
|
BshMethod |
NameSpace.getMethod(java.lang.String name,
java.lang.Class<?>[] sig)
Gets the method.
|
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.
|
static java.lang.Object |
Reflect.getObjectFieldValue(java.lang.Object object,
java.lang.String fieldName)
Check for a field with the given name in a java object or scripted object
if the field exists fetch the value, if not check for a property value.
|
static java.lang.Object |
Reflect.getStaticFieldValue(java.lang.Class<?> clas,
java.lang.String fieldName) |
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 |
ExternalNameSpace.getVariableImpl(java.lang.String name,
boolean recurse) |
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.
|
java.lang.Object |
NameSpace.getVariableOrProperty(java.lang.String name,
Interpreter interp)
Get the specified variable or property in this namespace or a parent
namespace.
|
static void |
This.initStatic(java.lang.Class<?> genClass)
Lazy initialize static context implementation.
|
static java.lang.Object |
Reflect.invokeCompiledCommand(java.lang.Class<?> commandClass,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
Node callerInfo)
A command may be implemented as a compiled Java class containing one or
more static invoke() methods of the correct signature.
|
static java.lang.Object |
Reflect.invokeStaticMethod(BshClassManager bcm,
java.lang.Class<?> clas,
java.lang.String methodName,
java.lang.Object[] args,
Node callerInfo)
Invoke a method known to be static.
|
java.lang.Object |
ClassGenerator.invokeSuperclassMethod(BshClassManager bcm,
java.lang.Object instance,
java.lang.Class<?> classStatic,
java.lang.String methodName,
java.lang.Object[] args)
Invoke a super.method() style superclass method on an object instance.
|
static java.lang.Object |
ClassGenerator.invokeSuperclassMethodImpl(BshClassManager bcm,
java.lang.Object instance,
java.lang.Class<?> classStatic,
java.lang.String methodName,
java.lang.Object[] args)
Find and invoke the super class delegate method.
|
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.
|
protected static Invocable |
Reflect.resolveExpectedJavaField(java.lang.Class<?> clas,
java.lang.String fieldName,
boolean staticOnly) |
protected static Invocable |
Reflect.resolveExpectedJavaMethod(BshClassManager bcm,
java.lang.Class<?> clas,
java.lang.Object object,
java.lang.String name,
java.lang.Object[] args,
boolean staticOnly)
This method wraps resolveJavaMethod() and expects a non-null method
result.
|
protected static Invocable |
Reflect.resolveJavaField(java.lang.Class<?> clas,
java.lang.String fieldName,
boolean staticOnly) |
protected static Invocable |
Reflect.resolveJavaMethod(java.lang.Class<?> clas,
java.lang.String name,
java.lang.Class<?>[] types,
boolean staticOnly)
The full blown resolver method.
|
void |
BshClassManager.setClassPath(java.net.URL[] cp)
Set a new base classpath and create a new base classloader.
|
Variable |
NameSpace.setLocalVariable(java.lang.String name,
java.lang.Object value,
boolean strictJava)
Set a variable explicitly in the local scope.
|
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 |
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,
boolean strictJava)
Set the variable through this namespace.
|
void |
NameSpace.setVariableOrProperty(java.lang.String name,
java.lang.Object value,
boolean strictJava)
Sets a variable or property.
|
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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SecurityError
It's a specific error that is throwed when try to execute something that mustn't be executed
|