Object getValue() throws UtilEvalError { if ( lhs != null ) return lhs.getValue(); return value; }
public Class<?> getType() { if ( null != field ) return field.getReturnType(); if ( null != var ) return var.getType(); try { return Types.getType(getValue()); } catch ( UtilEvalError e ) { return null; } }
private Object lhsUnaryOperation( LHS lhs, boolean strictJava ) throws UtilEvalError { Interpreter.debug("lhsUnaryOperation"); Object prevalue, postvalue; prevalue = lhs.getValue(); postvalue = unaryOperation(prevalue, kind); Object retVal; if ( postfix ) retVal = prevalue; else retVal = postvalue; lhs.assign( postvalue, strictJava ); return retVal; }
public Object lhsUnaryOperation( LHS lhs, boolean strictJava ) throws UtilEvalError { if ( Interpreter.DEBUG ) Interpreter.debug("lhsUnaryOperation"); Object prevalue, postvalue; prevalue = lhs.getValue(); postvalue = unaryOperation(prevalue, kind); Object retVal; if ( postfix ) retVal = prevalue; else retVal = postvalue; lhs.assign( postvalue, strictJava ); return retVal; }
else try { return ((LHS)obj).getValue(); } catch ( UtilEvalError e ) { throw e.toEvalError( node, callstack );
if ( obj instanceof LHS ) try { obj = ((LHS)obj).getValue(); } catch ( UtilEvalError e ) { throw e.toEvalError( node, callstack );
if ( obj instanceof LHS ) try { obj = ((LHS)obj).getValue(); } catch ( UtilEvalError e ) { throw e.toEvalError( this, callstack );
if ( node.operator != ParserConstants.ASSIGN ) // assign doesn't need the pre-value try { lhsValue = lhs.getValue(); } catch ( UtilEvalError e ) { throw e.toEvalError( node, callstack );
if ( operator != ASSIGN ) // assign doesn't need the pre-value try { lhsValue = lhs.getValue(); } catch ( UtilEvalError e ) { throw e.toEvalError( this, callstack );