code: public boolean mayBeNumeric()
    {
      if (type == UNKNOWN)
        type = NUMERIC;
      return type == NUMERIC || (type >= INT && type <= DOUBLE);
    }
docs: Returns true if the type is consistent with a numeric context, false otherwise.
  Sets the type to NUMERIC if it is UNKNOWN.