# Uses of Class
bsh.EvalError

Packages that use EvalError
Package
Description
bsh

## Uses of EvalError in bsh

Subclasses of EvalError in bsh
Modifier and Type
Class
Description
`class`
`ParseException`
This exception is thrown when parse errors are encountered.
`class`
`TargetError`
TargetError is an EvalError that wraps an exception thrown by the script (or by code called from the script).
Methods in bsh that return EvalError
Modifier and Type
Method
Description
`EvalError`
UtilEvalError.`toEvalError(bsh.SimpleNode node, CallStack callstack)`
`EvalError`
UtilEvalError.`toEvalError(String msg, bsh.SimpleNode node, CallStack callstack)`
Re-throw as an eval error, prefixing msg to the message and specifying the node.
`EvalError`
UtilTargetError.`toEvalError(String msg, bsh.SimpleNode node, CallStack callstack)`
Override toEvalError to throw TargetError type.
Methods in bsh that throw EvalError
Modifier and Type
Method
Description
`Object`
BSHPackageDeclaration.`eval(CallStack callstack, Interpreter interpreter)`
`Object`
Interpreter.`eval(Reader in)`
Evaluate the inputstream in this interpreter's global namespace.
`Object`
Interpreter.`eval(Reader in, NameSpace nameSpace, String sourceFileInfo)`
Spawn a non-interactive local interpreter to evaluate text in the specified namespace.
`Object`
Interpreter.`eval(String statements)`
Evaluate the string in this interpreter's global namespace.
`Object`
Interpreter.`eval(String statements, NameSpace nameSpace)`
Evaluate the string in the specified namespace.
`abstract Class`
ClassGenerator.`generateClass(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter)`
Parse the BSHBlock for the class definition and generate the class.
`Class`
ClassGeneratorImpl.`generateClass(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter)`
`static Class`
ClassGeneratorImpl.`generateClassImpl(String name, Modifiers modifiers, Class[] interfaces, Class superClass, bsh.BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter)`
Parse the BSHBlock for for the class definition and generate the class using ClassGenerator.
`Object`
Interpreter.`get(String name)`
Get the value of the name.
`Object`
Interpreter.`getInterface(Class interf)`
Get a reference to the interpreter (global namespace), cast to the specified interface type.
`Object`
BshMethod.`invoke(Object[] argValues, Interpreter interpreter)`
Invoke the declared method with the specified arguments and interpreter reference.
`Object`
BshMethod.`invoke(Object[] argValues, Interpreter interpreter, CallStack callstack, bsh.SimpleNode callerInfo)`
Invoke the bsh method with the specified args, interpreter ref, and callstack.
`Object`
NameSpace.`invokeMethod(String methodName, Object[] args, Interpreter interpreter)`
Invoke a method in this namespace with the specified args and interpreter reference.
`Object`
NameSpace.`invokeMethod(String methodName, Object[] args, Interpreter interpreter, CallStack callstack, bsh.SimpleNode callerInfo)`
This method simply delegates to This.invokeMethod();
`Object`
This.`invokeMethod(String name, Object[] args)`
Invoke specified method as from outside java code, using the declaring interpreter and current namespace.
`Object`
This.`invokeMethod(String methodName, Object[] args, Interpreter interpreter, CallStack callstack, bsh.SimpleNode callerInfo, boolean declaredOnly)`
Invoke a method in this namespace with the specified args, interpreter reference, callstack, and caller info.
`void`
EvalError.`reThrow(String msg)`
Re-throw the error, prepending the specified message.
`void`
Interpreter.`set(String name, boolean value)`
`void`
Interpreter.`set(String name, double value)`
`void`
Interpreter.`set(String name, float value)`
`void`
Interpreter.`set(String name, int value)`
`void`
Interpreter.`set(String name, long value)`
`void`
Interpreter.`set(String name, Object value)`
Assign the value to the name.
`Object`
Interpreter.`source(String filename)`
Read text from fileName and eval it.
`Object`
Interpreter.`source(String filename, NameSpace nameSpace)`
Read text from fileName and eval it.
`void`
Interpreter.`unset(String name)`
Unassign the variable name.