/** * <p> * Get the specified variable or property in this namespace or a parent * namespace. * </p> * <p> * We first search for a variable name, and then a property. * </p> * @param name the name * @param interp the interp * @return The variable or property value or Primitive.VOID if neither is * defined. * @throws UtilEvalError the util eval error */ public Object getVariableOrProperty(final String name, final Interpreter interp) throws UtilEvalError { final Object val = this.getVariable(name, true); return val == Primitive.VOID ? this.getPropertyValue(name, interp) : val; }
Object obj = namespace.getPropertyValue(varName, interpreter); return completeRound( evalName, FINISHED, obj ); } else