MCPcopy Create free account
hub / github.com/beanshell/beanshell / toLHS

Method toLHS

src/bsh/BSHPrimaryExpression.java:45–54  ·  view source on GitHub ↗

Evaluate to a value object.

( CallStack callstack, Interpreter interpreter)

Source from the content-addressed store, hash-verified

43 Evaluate to a value object.
44 */
45 public LHS toLHS( CallStack callstack, Interpreter interpreter)
46 throws EvalError
47 {
48 Object obj = eval( true, callstack, interpreter );
49
50 if ( ! (obj instanceof LHS) )
51 throw new EvalError("Can't assign to:", this, callstack );
52 else
53 return (LHS)obj;
54 }
55
56 /*
57 Our children are a prefix expression and any number of suffixes.

Callers 2

evalMethod · 0.95
evalMethod · 0.45

Calls 1

evalMethod · 0.95

Tested by

no test coverage detected