public static Stella_Object access_tuples_Slot_Value(tuples self, Symbol slotname, Stella_Object value, boolean setvalueP) {
    if (slotname == Plsoap.SYM_PLSOAP_NRESULTS) {
      if (setvalueP) {
        self.nresults = ((nresults)(value));
      }
      else {
        value = self.nresults;
      }
    }
    else if (slotname == Plsoap.SYM_LOGIC_QUERY) {
      if (setvalueP) {
        self.query = ((query)(value));
      }
      else {
        value = self.query;
      }
    }
    else if (slotname == Plsoap.SYM_LOGIC_PATTERN) {
      if (setvalueP) {
        self.pattern = ((pattern)(value));
      }
      else {
        value = self.pattern;
      }
    }
    else if (slotname == Plsoap.SYM_PLSOAP_TUPLE) {
      if (setvalueP) {
        self.tuple = ((List)(value));
      }
      else {
        value = self.tuple;
      }
    }
    else {
      { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

        stream000.nativeStream.print("`" + slotname + "' is not a valid case option");
        throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
      }
    }
    return (value);
  }