|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use EvalError | |
bsh | |
bsh.classpath |
Uses of EvalError in bsh |
Subclasses of EvalError in bsh | |
class |
ClassPathException
|
(package private) 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 throw EvalError | |
java.lang.Object |
XThis.Handler.invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
java.lang.Object |
XThis.Handler.invokeImpl(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
java.lang.Object |
This.getInterface(java.lang.Class clas)
Get a version of the interface. |
java.lang.Object |
This.invokeMethod(java.lang.String name,
java.lang.Object[] args)
Invoke specified method from outside java code, using the declaring interpreter and current namespace. |
java.lang.Object |
This.invokeMethod(java.lang.String name,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
SimpleNode callerInfo)
Invoke specified method with specified interpreter. |
java.lang.Object |
SimpleNode.eval(NameSpace namespace)
Some nodes require only a namespace for evaluation. |
java.lang.Object |
SimpleNode.eval(CallStack callstack,
Interpreter interpreter)
This is the general signature for evaluation of a node. |
static java.lang.Object |
Reflect.invokeObjectMethod(Interpreter interpreter,
java.lang.Object object,
java.lang.String methodName,
java.lang.Object[] args,
SimpleNode callerInfo)
Invoke method on object. |
static java.lang.Object |
Reflect.invokeStaticMethod(java.lang.Class clas,
java.lang.String methodName,
java.lang.Object[] args)
Invoke a static method. |
private static java.lang.Object |
Reflect.invokeMethod(java.lang.Class clas,
java.lang.Object object,
java.lang.String name,
java.lang.Object[] args,
boolean onlyStatic)
The full blown invoke method. |
static void |
Reflect.setObjectProperty(java.lang.Object obj,
java.lang.String propName,
java.lang.Object value)
|
static java.lang.Object |
Primitive.binaryOperation(java.lang.Object obj1,
java.lang.Object obj2,
int kind)
Allow primitive operations on wrapper types such as Integer and Boolean. |
(package private) static java.lang.Object |
Primitive.binaryOperationImpl(java.lang.Object lhs,
java.lang.Object rhs,
int kind)
|
(package private) static java.lang.Boolean |
Primitive.booleanBinaryOperation(java.lang.Boolean B1,
java.lang.Boolean B2,
int kind)
|
(package private) static java.lang.Object |
Primitive.doubleBinaryOperation(java.lang.Double D1,
java.lang.Double D2,
int kind)
|
(package private) static java.lang.Object |
Primitive.floatBinaryOperation(java.lang.Float F1,
java.lang.Float F2,
int kind)
|
static Primitive |
Primitive.unaryOperation(Primitive val,
int kind)
|
(package private) static boolean |
Primitive.booleanUnaryOperation(java.lang.Boolean B,
int kind)
|
int |
Primitive.intValue()
|
boolean |
Primitive.booleanValue()
|
java.lang.Number |
Primitive.numberValue()
|
java.lang.Object |
NameSpace.get(java.lang.String name,
Interpreter interpreter)
Resolve name to an object through this namespace. |
void |
NameSpace.setVariable(java.lang.String name,
java.lang.Object value)
Set a variable in this namespace. |
void |
NameSpace.setTypedVariable(java.lang.String name,
java.lang.Class type,
java.lang.Object value,
boolean isFinal)
Set the typed variable with the value. |
static void |
NameSpace.doSuperImport()
Perform "import *;" causing the entire classpath to be mapped. |
static java.lang.Object |
NameSpace.checkAssignableFrom(java.lang.Object rhs,
java.lang.Class lhsType)
Deprecated. name changed. |
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 (as is, through widening, promotion, etc) and if so, return the assignable form of the RHS. |
private static void |
NameSpace.assignmentError(java.lang.Class lhs,
java.lang.Class rhs)
|
java.lang.Object |
NameSpace.invokeMethod(java.lang.String methodName,
java.lang.Object[] args,
Interpreter interpreter)
Invoke a method in this namespace with the specified args and interpreter reference. |
java.lang.Object |
NameSpace.invokeMethod(java.lang.String methodName,
java.lang.Object[] args,
Interpreter interpreter,
CallStack callstack,
SimpleNode callerInfo)
invoke a method in this namespace with the specified args, interpreter reference, and callstack This is a convenience for users outside of this package. |
(package private) void |
NameSpace.TypedVariable.setValue(java.lang.Object val)
Set the value of the typed variable. |
java.lang.Object |
Name.toObject(CallStack callstack,
Interpreter interpreter)
Resolve possibly complex name to an object value. |
java.lang.Object |
Name.toObject(CallStack callstack,
Interpreter interpreter,
boolean forceClass)
|
private java.lang.Object |
Name.consumeNextObjectField(CallStack callstack,
Interpreter interpreter,
boolean forceClass)
Get next prefixed object field component |
(package private) java.lang.Object |
Name.resolveThisFieldReference(CallStack callstack,
NameSpace thisNamespace,
Interpreter interpreter,
java.lang.String varName,
boolean specialFieldsVisible)
Resolve a variable relative to a This reference. |
java.lang.Class |
Name.toClass()
Check the cache, else use toObject() to try to resolve to a class identifier. |
LHS |
Name.toLHS(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
Name.invokeMethod(Interpreter interpreter,
java.lang.Object[] args,
CallStack callstack,
SimpleNode callerInfo)
Invoke the method identified by name. |
java.lang.Object |
Name.invokeLocalMethod(Interpreter interpreter,
java.lang.Object[] args,
CallStack callstack,
SimpleNode callerInfo)
Invoke a locally declared method or a bsh command. |
java.lang.Object |
LHS.getValue()
|
java.lang.Object |
LHS.assign(java.lang.Object val)
|
java.lang.Object |
Interpreter.source(java.lang.String filename,
NameSpace nameSpace)
Read text from fileName and eval it. |
java.lang.Object |
Interpreter.source(java.lang.String filename)
Read text from fileName and eval it. |
java.lang.Object |
Interpreter.eval(java.io.Reader in,
NameSpace nameSpace,
java.lang.String sourceFileInfo)
Spawn a non-interactive local interpreter to evaluate text in the specified namespace. |
java.lang.Object |
Interpreter.eval(java.io.Reader in)
Evaluate the inputstream in this interpreter's global namespace. |
java.lang.Object |
Interpreter.eval(java.lang.String statement)
Evaluate the string in this interpreter's global namespace. |
java.lang.Object |
Interpreter.eval(java.lang.String statement,
NameSpace nameSpace)
Evaluate the string in the specified namespace. |
java.lang.Object |
Interpreter.get(java.lang.String name)
Get the value of the name. |
void |
Interpreter.set(java.lang.String name,
java.lang.Object value)
Assign the value to the name. |
void |
Interpreter.set(java.lang.String name,
long value)
|
void |
Interpreter.set(java.lang.String name,
int value)
|
void |
Interpreter.set(java.lang.String name,
double value)
|
void |
Interpreter.set(java.lang.String name,
float value)
|
void |
Interpreter.set(java.lang.String name,
boolean value)
|
void |
Interpreter.unset(java.lang.String name)
Unassign the variable name. |
java.lang.Object |
Interpreter.getInterface(java.lang.Class interf)
Fetch a reference to the interpreter (global namespace), and cast it to the specified type of interface type. |
void |
EvalError.reThrow(java.lang.String msg)
Re-throw the eval error, prepending msg to the message. |
void |
EvalError.reThrow(SimpleNode node)
Re-throw the eval error, specifying the node. |
void |
EvalError.reThrow(java.lang.String addMsg,
SimpleNode addNode)
Re-throw the eval error, prefixing msg to the message and specifying the node. |
java.lang.Object |
BSHWhileStatement.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHVariableDeclarator.eval(BSHType typeNode,
CallStack callstack,
Interpreter interpreter)
Evaluate the optional initializer value. |
java.lang.Object |
BSHUnaryExpression.eval(CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHUnaryExpression.lhsUnaryOperation(LHS lhs)
|
private java.lang.Object |
BSHUnaryExpression.unaryOperation(java.lang.Object op,
int kind)
|
private java.lang.Object |
BSHUnaryExpression.primitiveWrapperUnaryOperation(java.lang.Object val,
int kind)
|
java.lang.Object |
BSHTypedVariableDeclaration.eval(CallStack callstack,
Interpreter interpreter)
evaluate the type and one or more variable declarators, e.g.: int a, b=5, c; |
java.lang.Class |
BSHType.getType(NameSpace namespace)
Returns a class for the type |
java.lang.Object |
BSHTryStatement.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHThrowStatement.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHTernaryExpression.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHSwitchStatement.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHSwitchLabel.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHStatementExpressionList.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHReturnType.getReturnType(NameSpace namespace)
|
java.lang.Object |
BSHReturnStatement.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHPrimarySuffix.doSuffix(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHPrimarySuffix.doName(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
(package private) static int |
BSHPrimarySuffix.getIndexAux(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter,
SimpleNode callerNode)
Just factoring out some common code for the two suffix classes... |
private java.lang.Object |
BSHPrimarySuffix.doIndex(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHPrimarySuffix.doProperty(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHPrimaryExpression.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHMethodInvocation.eval(CallStack callstack,
Interpreter interpreter)
Evaluate the method invocation with the specified callstack and interpreter |
java.lang.Object |
BSHMethodDeclaration.eval(NameSpace namespace)
Evaluate the declaration of the method. |
java.lang.Object |
BshMethod.invoke(java.lang.Object[] argValues,
Interpreter interpreter,
CallStack callstack)
Invoke the declared method with the specified arguments, interpreter reference, and callstack. |
(package private) java.lang.Object |
BshMethod.invokeDeclaredMethod(java.lang.Object[] argValues,
Interpreter interpreter,
CallStack callstack,
SimpleNode callerInfo)
Invoke the bsh method with the specified args, interpreter ref, and callstack. |
java.lang.Object |
BSHLiteral.eval(CallStack callstack,
Interpreter interpreter)
|
LHS |
BSHLHSPrimarySuffix.doLHSSuffix(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
private LHS |
BSHLHSPrimarySuffix.doName(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
private LHS |
BSHLHSPrimarySuffix.doIndex(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
private LHS |
BSHLHSPrimarySuffix.doProperty(java.lang.Object obj,
CallStack callstack,
Interpreter interpreter)
|
LHS |
BSHLHSPrimaryExpression.toLHS(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHImportDeclaration.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHIfStatement.eval(CallStack callstack,
Interpreter interpreter)
|
static boolean |
BSHIfStatement.evaluateCondition(SimpleNode condExp,
CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHForStatement.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHFormalParameters.eval(NameSpace namespace)
Evaluate the types. |
java.lang.Object |
BSHFormalParameter.eval(NameSpace namespace)
Evaluate the type. |
abstract void |
BshClassManager.doSuperImport()
Support for "import *;" Hide details in here as opposed to NameSpace. |
java.lang.Object |
BSHCastExpression.eval(CallStack callstack,
Interpreter interpreter)
|
static java.lang.Object |
BSHCastExpression.castObject(java.lang.Object fromValue,
java.lang.Class toType)
Cast an object to a new type. |
static void |
BSHCastExpression.castError(java.lang.Class from,
java.lang.Class to)
Wrap up the ClassCastException in a TargetError so that it can be caught... |
static void |
BSHCastExpression.castError(java.lang.String from,
java.lang.String to)
|
static Primitive |
BSHCastExpression.castPrimitive(Primitive primValue,
java.lang.Class toType)
Cast the bsh.Primitive value to a new bsh.Primitive value This is usually a numeric type cast. |
java.lang.Object |
BSHBlock.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHBlock.eval(CallStack callstack,
Interpreter interpreter,
boolean overrideNamespace)
|
java.lang.Object |
BSHBinaryExpression.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHAssignment.eval(CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHAssignment.operation(java.lang.Object lhs,
java.lang.Object rhs,
int kind)
|
java.lang.Object |
BSHArrayInitializer.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHArrayInitializer.eval(java.lang.Class baseType,
int dimensions,
CallStack callstack,
Interpreter interpreter)
Construct the array from the initializer syntax. |
private void |
BSHArrayInitializer.throwTypeError(java.lang.Class baseType,
java.lang.Object initializer,
int argNum)
|
java.lang.Object |
BSHArrayDimensions.eval(java.lang.Class type,
CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHArrayDimensions.eval(CallStack callstack,
Interpreter interpreter)
Evaluate the structure of the array in one of two ways: a) an initializer exists, evaluate it and return the fully constructed array object, also record the dimensions of that array b) evaluate and record the lengths in each dimension and return void. |
java.lang.Object[] |
BSHArguments.getArguments(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHAmbiguousName.toObject(CallStack callstack,
Interpreter interpreter)
|
java.lang.Class |
BSHAmbiguousName.toClass(NameSpace namespace)
|
LHS |
BSHAmbiguousName.toLHS(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHAmbiguousName.eval(CallStack callstack,
Interpreter interpreter)
|
java.lang.Object |
BSHAllocationExpression.eval(CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHAllocationExpression.objectAllocation(BSHAmbiguousName nameNode,
BSHArguments argumentsNode,
CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHAllocationExpression.constructObject(java.lang.Class type,
java.lang.Object[] args)
|
private java.lang.Object |
BSHAllocationExpression.constructWithBody(java.lang.Class type,
java.lang.Object[] args,
BSHBlock body,
CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHAllocationExpression.objectArrayAllocation(BSHAmbiguousName nameNode,
BSHArrayDimensions dimensionsNode,
CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHAllocationExpression.primitiveArrayAllocation(BSHPrimitiveType typeNode,
BSHArrayDimensions dimensionsNode,
CallStack callstack,
Interpreter interpreter)
|
private java.lang.Object |
BSHAllocationExpression.arrayNewInstance(java.lang.Class type,
BSHArrayDimensions dimensionsNode)
|
void |
BlockNameSpace.setVariable(java.lang.String name,
java.lang.Object o)
Override the standard namespace behavior. |
Constructors in bsh that throw EvalError | |
NameSpace.TypedVariable(java.lang.Class type,
java.lang.Object value,
boolean isFinal)
|
|
BlockNameSpace(NameSpace parent)
|
Uses of EvalError in bsh.classpath |
Methods in bsh.classpath that throw EvalError | |
void |
ClassManagerImpl.doSuperImport()
Support for "import *;" Hide details in here as opposed to NameSpace. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |