| Package | Description |
|---|---|
| bsh | |
| bsh.security |
| Modifier and Type | Class and Description |
|---|---|
class |
BSHAutoCloseable |
class |
BSHEnumConstant |
class |
BSHLabeledStatement |
class |
BSHLiteral |
class |
BSHMultiCatch |
class |
BSHPackageDeclaration |
class |
BSHTryWithResources |
class |
SimpleNode |
| Modifier and Type | Field and Description |
|---|---|
protected Node[] |
SimpleNode.children |
static Node |
Node.JAVACODE |
protected Node |
SimpleNode.parent |
| Modifier and Type | Method and Description |
|---|---|
Node |
SimpleNode.jjtGetChild(int i)
Returns the child node at the given index.
|
Node |
Node.jjtGetChild(int i)
Returns the child node at the given index.
|
Node[] |
SimpleNode.jjtGetChildren()
Return the list of child nodes..
|
Node[] |
Node.jjtGetChildren()
Return the list of child nodes..
|
Node |
SimpleNode.jjtGetParent()
Return node parent.
|
Node |
Node.jjtGetParent()
Return node parent.
|
Node |
SimpleNode.next() |
Node |
SimpleNode.previous() |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleNode.add(Node e) |
java.lang.Object |
BshMethod.invoke(java.lang.Object[] argValues,
Interpreter interpreter,
CallStack callstack,
Node callerInfo)
Invoke the bsh method with the specified args, interpreter ref,
and callstack.
|
protected java.lang.Object |
NameSpace.invokeCommand(java.lang.String commandName,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
Node callerInfo)
Invoke an imported command scoped by namespace hierarchy.
|
protected java.lang.Object |
NameSpace.invokeCommand(java.lang.String commandName,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
Node callerInfo,
boolean ignoreInvoke)
Invoke an imported command scoped by namespace hierarchy.
|
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.
|
protected java.lang.Object |
NameSpace.invokeDefaultInvokeMethod(java.lang.String commandName,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
Node callerInfo,
boolean[] outHasMethod)
Invoke the default invoke method if found in the namespace,
Updates the outHasMethod array index 0 by reference, if false then method was
not found and the return result is meaningless.
|
java.lang.Object |
NameSpace.invokeMethod(java.lang.String methodName,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
Node callerInfo)
This method simply delegates to This.invokeMethod();.
|
java.lang.Object |
This.invokeMethod(java.lang.String methodName,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
Node callerInfo,
boolean declaredOnly)
Invoke a method in this namespace with the specified args,
interpreter reference, callstack, and caller info.
|
static java.lang.Object |
Reflect.invokeObjectMethod(java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
Node callerInfo)
Invoke method on arbitrary object instance.
|
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.
|
void |
SimpleNode.jjtAddChild(Node n,
int i)
Add argument to the list of children.
|
void |
Node.jjtAddChild(Node n,
int i)
Add argument to the list of children.
|
void |
SimpleNode.jjtSetParent(Node n)
Inform the node of its parent.
|
void |
Node.jjtSetParent(Node n)
Inform the node of its parent.
|
void |
SimpleNode.set(Node e) |
EvalError |
UtilEvalError.toEvalError(Node node,
CallStack callstack) |
EvalError |
UtilEvalError.toEvalError(java.lang.String msg,
Node node,
CallStack callstack)
Re-throw as an eval error, prefixing msg to the message and specifying
the node.
|
EvalError |
UtilTargetError.toEvalError(java.lang.String msg,
Node node,
CallStack callstack)
Override toEvalError to throw TargetError type.
|
EvalException |
UtilEvalError.toEvalException(Node node,
CallStack callstack) |
EvalException |
UtilEvalError.toEvalException(java.lang.String msg,
Node node,
CallStack callstack) |
| Constructor and Description |
|---|
EvalError(java.lang.String s,
Node node,
CallStack callstack) |
EvalError(java.lang.String s,
Node node,
CallStack callstack,
java.lang.Throwable cause) |
EvalException(java.lang.String s,
Node node,
CallStack callstack) |
EvalException(java.lang.String s,
Node node,
CallStack callstack,
java.lang.Throwable cause) |
TargetError(java.lang.String msg,
java.lang.Throwable t,
Node node,
CallStack callstack,
boolean inNativeCode) |
TargetError(java.lang.Throwable t,
Node node,
CallStack callstack) |
| Modifier and Type | Method and Description |
|---|---|
EvalError |
SecurityError.toEvalError(Node node,
CallStack callstack) |
EvalError |
SecurityError.toEvalError(java.lang.String msg,
Node node,
CallStack callstack) |