test_class.declarator: thrown = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException thrown = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: thrown
test_class.declarator: jsonWriter
test_class.modifier: private
test_class.original_string: private JsonWriter   jsonWriter;
test_class.type: JsonWriter
test_class.var_name: jsonWriter
test_class.declarator: writer
test_class.modifier: private
test_class.original_string: private StringWriter writer;
test_class.type: StringWriter
test_class.var_name: writer
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/provider/json/JsonWriterTest.java
test_class.identifier: JsonWriterTest
test_case.body: @Test
      public void failsWhenEndObjectIsBeforeStartObject() throws Exception {
          thrown.expect(JsonException.class);
          jsonWriter.writeEndObject();
      }
test_case.class_method_signature: JsonWriterTest.failsWhenEndObjectIsBeforeStartObject()
test_case.full_signature: @Test public void failsWhenEndObjectIsBeforeStartObject()
test_case.identifier: failsWhenEndObjectIsBeforeStartObject
test_case.invocations: expect writeEndObject
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void failsWhenEndObjectIsBeforeStartObject()
focal_class.declarator: stack
focal_class.modifier: private final
focal_class.original_string: private final JsonStack<JsonToken> stack;
focal_class.type: JsonStack<JsonToken>
focal_class.var_name: stack
focal_class.declarator: writer
focal_class.modifier: private final
focal_class.original_string: private final Writer writer;
focal_class.type: Writer
focal_class.var_name: writer
focal_class.declarator: commaFirst
focal_class.modifier: private
focal_class.original_string: private boolean commaFirst;
focal_class.type: boolean
focal_class.var_name: commaFirst
focal_class.declarator: currentKey
focal_class.modifier: private
focal_class.original_string: private String currentKey;
focal_class.type: String
focal_class.var_name: currentKey
focal_class.declarator: writeNulls
focal_class.modifier: private
focal_class.original_string: private boolean writeNulls;
focal_class.type: boolean
focal_class.var_name: writeNulls
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/provider/json/JsonWriter.java
focal_class.identifier: JsonWriter
focal_class.class_method_signature: JsonWriter.JsonWriter(Writer writer)
focal_class.full_signature: public  JsonWriter(Writer writer)
focal_class.identifier: JsonWriter
focal_class.modifiers: public
focal_class.parameters: (Writer writer)
focal_class.signature:  JsonWriter(Writer writer)
focal_class.class_method_signature: JsonWriter.JsonWriter(OutputStream out)
focal_class.full_signature: public  JsonWriter(OutputStream out)
focal_class.identifier: JsonWriter
focal_class.modifiers: public
focal_class.parameters: (OutputStream out)
focal_class.signature:  JsonWriter(OutputStream out)
focal_class.class_method_signature: JsonWriter.isWriteNulls()
focal_class.full_signature: public final boolean isWriteNulls()
focal_class.identifier: isWriteNulls
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isWriteNulls()
focal_class.class_method_signature: JsonWriter.setWriteNulls(boolean writeNulls)
focal_class.full_signature: public final void setWriteNulls(boolean writeNulls)
focal_class.identifier: setWriteNulls
focal_class.modifiers: public final
focal_class.parameters: (boolean writeNulls)
focal_class.return: void
focal_class.signature: void setWriteNulls(boolean writeNulls)
focal_class.class_method_signature: JsonWriter.writeStartObject()
focal_class.full_signature: public void writeStartObject()
focal_class.identifier: writeStartObject
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeStartObject()
focal_class.class_method_signature: JsonWriter.writeEndObject()
focal_class.full_signature: public void writeEndObject()
focal_class.identifier: writeEndObject
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeEndObject()
focal_class.class_method_signature: JsonWriter.writeStartArray()
focal_class.full_signature: public void writeStartArray()
focal_class.identifier: writeStartArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeStartArray()
focal_class.class_method_signature: JsonWriter.writeEndArray()
focal_class.full_signature: public void writeEndArray()
focal_class.identifier: writeEndArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeEndArray()
focal_class.class_method_signature: JsonWriter.writeKey(String key)
focal_class.full_signature: public void writeKey(String key)
focal_class.identifier: writeKey
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: void
focal_class.signature: void writeKey(String key)
focal_class.class_method_signature: JsonWriter.writeCurrentKey()
focal_class.full_signature: private void writeCurrentKey()
focal_class.identifier: writeCurrentKey
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeCurrentKey()
focal_class.class_method_signature: JsonWriter.writeString(String value)
focal_class.full_signature: public void writeString(String value)
focal_class.identifier: writeString
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void writeString(String value)
focal_class.class_method_signature: JsonWriter.writeValue(String value)
focal_class.full_signature: public void writeValue(String value)
focal_class.identifier: writeValue
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void writeValue(String value)
focal_class.class_method_signature: JsonWriter.writeValue(long value)
focal_class.full_signature: public void writeValue(long value)
focal_class.identifier: writeValue
focal_class.modifiers: public
focal_class.parameters: (long value)
focal_class.return: void
focal_class.signature: void writeValue(long value)
focal_class.class_method_signature: JsonWriter.writeValue(double value)
focal_class.full_signature: public void writeValue(double value)
focal_class.identifier: writeValue
focal_class.modifiers: public
focal_class.parameters: (double value)
focal_class.return: void
focal_class.signature: void writeValue(double value)
focal_class.class_method_signature: JsonWriter.writeValue(boolean value)
focal_class.full_signature: public void writeValue(boolean value)
focal_class.identifier: writeValue
focal_class.modifiers: public
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void writeValue(boolean value)
focal_class.class_method_signature: JsonWriter.writeNull()
focal_class.full_signature: public void writeNull()
focal_class.identifier: writeNull
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeNull()
focal_class.class_method_signature: JsonWriter.write(String value)
focal_class.full_signature: private void write(String value)
focal_class.identifier: write
focal_class.modifiers: private
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void write(String value)
focal_class.class_method_signature: JsonWriter.flush()
focal_class.full_signature: public void flush()
focal_class.identifier: flush
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: JsonWriter.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: public void writeEndObject() throws JsonException {
          try {
              JsonToken token = stack.pop();
              if (token == object) {
                  writer.write('}');
                  commaFirst = true;
              } else {
                  throw new JsonException("Syntax error. Unexpected element '}'.");
              }
          } catch (IOException e) {
              throw new JsonException(e.getMessage(), e);
          }
      }
focal_method.class_method_signature: JsonWriter.writeEndObject()
focal_method.full_signature: public void writeEndObject()
focal_method.identifier: writeEndObject
focal_method.invocations: pop write getMessage
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void writeEndObject()