test_class.declarator: KNOWN_STRING_VALUE = "foo"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_STRING_VALUE = "foo";
test_class.type: String
test_class.var_name: KNOWN_STRING_VALUE
test_class.file: json/src/test/java/org/eclipse/ditto/json/ImmutableJsonStringTest.java
test_class.identifier: ImmutableJsonStringTest
test_case.body: @Test
      public void toStringReturnsExpected() {
          final String expected = "\"" + KNOWN_STRING_VALUE + "\"";
          final com.eclipsesource.json.JsonValue underTest = Json.value(KNOWN_STRING_VALUE);
  
          assertThat(underTest.toString()).isEqualTo(expected);
      }
test_case.class_method_signature: ImmutableJsonStringTest.toStringReturnsExpected()
test_case.full_signature: @Test public void toStringReturnsExpected()
test_case.identifier: toStringReturnsExpected
test_case.invocations: value isEqualTo assertThat toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void toStringReturnsExpected()
focal_class.declarator: MAX_CHAR_ESCAPE_SEQUENCE_LENGTH = 6
focal_class.modifier: private static final
focal_class.original_string: private static final long MAX_CHAR_ESCAPE_SEQUENCE_LENGTH = 6;
focal_class.type: long
focal_class.var_name: MAX_CHAR_ESCAPE_SEQUENCE_LENGTH
focal_class.declarator: NUM_ENCLOSING_QUOTES = 2
focal_class.modifier: private static final
focal_class.original_string: private static final long NUM_ENCLOSING_QUOTES = 2;
focal_class.type: long
focal_class.var_name: NUM_ENCLOSING_QUOTES
focal_class.declarator: value
focal_class.modifier: private final
focal_class.original_string: private final String value;
focal_class.type: String
focal_class.var_name: value
focal_class.declarator: stringRepresentation
focal_class.modifier: @Nullable private
focal_class.original_string: @Nullable private String stringRepresentation;
focal_class.type: String
focal_class.var_name: stringRepresentation
focal_class.file: json/src/main/java/org/eclipse/ditto/json/ImmutableJsonString.java
focal_class.identifier: ImmutableJsonString
focal_class.class_method_signature: ImmutableJsonString.ImmutableJsonString(final String jsonString)
focal_class.full_signature: private  ImmutableJsonString(final String jsonString)
focal_class.identifier: ImmutableJsonString
focal_class.modifiers: private
focal_class.parameters: (final String jsonString)
focal_class.signature:  ImmutableJsonString(final String jsonString)
focal_class.class_method_signature: ImmutableJsonString.of(final String string)
focal_class.full_signature: public static ImmutableJsonString of(final String string)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final String string)
focal_class.return: ImmutableJsonString
focal_class.signature: ImmutableJsonString of(final String string)
focal_class.class_method_signature: ImmutableJsonString.isString()
focal_class.full_signature: @Override public boolean isString()
focal_class.identifier: isString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isString()
focal_class.class_method_signature: ImmutableJsonString.asString()
focal_class.full_signature: @Override public String asString()
focal_class.identifier: asString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String asString()
focal_class.class_method_signature: ImmutableJsonString.equals(final Object o)
focal_class.full_signature: @Override public boolean equals(final Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (final Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object o)
focal_class.class_method_signature: ImmutableJsonString.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: ImmutableJsonString.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: ImmutableJsonString.writeValue(final SerializationContext serializationContext)
focal_class.full_signature: @Override public void writeValue(final SerializationContext serializationContext)
focal_class.identifier: writeValue
focal_class.modifiers: @Override public
focal_class.parameters: (final SerializationContext serializationContext)
focal_class.return: void
focal_class.signature: void writeValue(final SerializationContext serializationContext)
focal_class.class_method_signature: ImmutableJsonString.getUpperBoundForStringSize()
focal_class.full_signature: @Override public long getUpperBoundForStringSize()
focal_class.identifier: getUpperBoundForStringSize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getUpperBoundForStringSize()
focal_class.class_method_signature: ImmutableJsonString.createStringRepresentation()
focal_class.full_signature: private String createStringRepresentation()
focal_class.identifier: createStringRepresentation
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String createStringRepresentation()
focal_class.superclass: extends AbstractJsonValue
focal_method.body: @Override
      public String toString() {
          // keep escaped string as escaping is expensive
          String result = stringRepresentation;
          if (null == result) {
              result = createStringRepresentation();
              stringRepresentation = result;
          }
          return result;
      }
focal_method.class_method_signature: ImmutableJsonString.toString()
focal_method.full_signature: @Override public String toString()
focal_method.identifier: toString
focal_method.invocations: createStringRepresentation
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()