public StringBuilder toString()

in messages/src/main/java/com/epam/deltix/timebase/messages/qql/StatefulFunctionMessage.java [367:422]


  public StringBuilder toString(StringBuilder str) {
    str.append("{ \"$type\":  \"StatefulFunctionMessage\"");
    if (hasId()) {
      str.append(", \"id\": \"").append(getId()).append("\"");
    }
    if (hasInitArguments()) {
      str.append(", \"initArguments\": [");
      if (getInitArguments().size() > 0) {
        if (getInitArguments().get(0) == null) {
          str.append("null");
        } else {
          getInitArguments().get(0).toString(str);
        }
      }
      for (int i = 1; i < getInitArguments().size(); ++i) {
        str.append(", ");
        if (getInitArguments().get(i) == null) {
          str.append("null");
        } else {
          getInitArguments().get(i).toString(str);
        }
      }
      str.append("]");
    }
    if (hasArguments()) {
      str.append(", \"arguments\": [");
      if (getArguments().size() > 0) {
        if (getArguments().get(0) == null) {
          str.append("null");
        } else {
          getArguments().get(0).toString(str);
        }
      }
      for (int i = 1; i < getArguments().size(); ++i) {
        str.append(", ");
        if (getArguments().get(i) == null) {
          str.append("null");
        } else {
          getArguments().get(i).toString(str);
        }
      }
      str.append("]");
    }
    if (hasReturnType()) {
      str.append(", \"returnType\": ");
      getReturnType().toString(str);
    }
    if (hasTimeStampMs()) {
      str.append(", \"timeStampMs\": \"").append(getTimeStampMs()).append("\"");
    }
    if (hasSymbol()) {
      str.append(", \"symbol\": \"").append(getSymbol()).append("\"");
    }
    str.append("}");
    return str;
  }