test_class.file: a-foundation/src/test/java/com/ajjpj/afoundation/io/AJsonSerHelperTest.java
test_class.identifier: AJsonSerHelperTest
test_case.body: @Test
      public void testNegativeNumber9() throws IOException {
          final ByteArrayOutputStream baos = new ByteArrayOutputStream();
          final AJsonSerHelper ser = new AJsonSerHelper(baos);
  
          ser.writeNumberLiteral(-1234567890, 9);
  
          final String result = new String(baos.toByteArray(), "utf-8");
          assertEquals("-1.234567890", result);
      }
test_case.class_method_signature: AJsonSerHelperTest.testNegativeNumber9()
test_case.full_signature: @Test public void testNegativeNumber9()
test_case.identifier: testNegativeNumber9
test_case.invocations: writeNumberLiteral toByteArray assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNegativeNumber9()
focal_class.declarator: UTF_8 = Charset.forName ("UTF-8")
focal_class.modifier: public static final
focal_class.original_string: public static final Charset UTF_8 = Charset.forName ("UTF-8");
focal_class.type: Charset
focal_class.var_name: UTF_8
focal_class.declarator: TEN_POW = new int[] {1, 10, 100, 1_000, 10_000, 100_000, 1000_000, 10_000_000, 100_000_000, 1_000_000_000}
focal_class.modifier: private static final
focal_class.original_string: private static final int[] TEN_POW = new int[] {1, 10, 100, 1_000, 10_000, 100_000, 1000_000, 10_000_000, 100_000_000, 1_000_000_000};
focal_class.type: int[]
focal_class.var_name: TEN_POW
focal_class.declarator: PATTERNS = new String[] {"0", "0.0", "0.00", "0.000", "0.0000", "0.00000", "0.000000", "0.0000000", "0.00000000", "0.000000000"}
focal_class.modifier: private static final
focal_class.original_string: private static final String[] PATTERNS = new String[] {"0", "0.0", "0.00", "0.000", "0.0000", "0.00000", "0.000000", "0.0000000", "0.00000000", "0.000000000"};
focal_class.type: String[]
focal_class.var_name: PATTERNS
focal_class.declarator: DECIMAL_FORMAT_SYMBOLS = new DecimalFormatSymbols (Locale.US)
focal_class.modifier: private static final
focal_class.original_string: private static final DecimalFormatSymbols DECIMAL_FORMAT_SYMBOLS = new DecimalFormatSymbols (Locale.US);
focal_class.type: DecimalFormatSymbols
focal_class.var_name: DECIMAL_FORMAT_SYMBOLS
focal_class.declarator: out
focal_class.modifier: protected final
focal_class.original_string: protected final Writer out;
focal_class.type: Writer
focal_class.var_name: out
focal_class.declarator: state = new ArrayDeque<> ()
focal_class.modifier: private final
focal_class.original_string: private final Deque<JsonSerState> state = new ArrayDeque<> ();
focal_class.type: Deque<JsonSerState>
focal_class.var_name: state
focal_class.file: a-foundation/src/main/java/com/ajjpj/afoundation/io/AJsonSerHelper.java
focal_class.identifier: AJsonSerHelper
focal_class.class_method_signature: AJsonSerHelper.AJsonSerHelper(OutputStream out)
focal_class.full_signature: public  AJsonSerHelper(OutputStream out)
focal_class.identifier: AJsonSerHelper
focal_class.modifiers: public
focal_class.parameters: (OutputStream out)
focal_class.signature:  AJsonSerHelper(OutputStream out)
focal_class.class_method_signature: AJsonSerHelper.startObject()
focal_class.full_signature: public void startObject()
focal_class.identifier: startObject
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startObject()
focal_class.class_method_signature: AJsonSerHelper.endObject()
focal_class.full_signature: public void endObject()
focal_class.identifier: endObject
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void endObject()
focal_class.class_method_signature: AJsonSerHelper.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: AJsonSerHelper.startArray()
focal_class.full_signature: public void startArray()
focal_class.identifier: startArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void startArray()
focal_class.class_method_signature: AJsonSerHelper.endArray()
focal_class.full_signature: public void endArray()
focal_class.identifier: endArray
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void endArray()
focal_class.class_method_signature: AJsonSerHelper.writeStringLiteral(String s)
focal_class.full_signature: public void writeStringLiteral(String s)
focal_class.identifier: writeStringLiteral
focal_class.modifiers: public
focal_class.parameters: (String s)
focal_class.return: void
focal_class.signature: void writeStringLiteral(String s)
focal_class.class_method_signature: AJsonSerHelper._writeStringLiteral(String s)
focal_class.full_signature: private void _writeStringLiteral(String s)
focal_class.identifier: _writeStringLiteral
focal_class.modifiers: private
focal_class.parameters: (String s)
focal_class.return: void
focal_class.signature: void _writeStringLiteral(String s)
focal_class.class_method_signature: AJsonSerHelper.writeNumberLiteral(long value, int numFracDigits)
focal_class.full_signature: public void writeNumberLiteral(long value, int numFracDigits)
focal_class.identifier: writeNumberLiteral
focal_class.modifiers: public
focal_class.parameters: (long value, int numFracDigits)
focal_class.return: void
focal_class.signature: void writeNumberLiteral(long value, int numFracDigits)
focal_class.class_method_signature: AJsonSerHelper.writeNumberLiteral(double value, int numFracDigits)
focal_class.full_signature: public void writeNumberLiteral(double value, int numFracDigits)
focal_class.identifier: writeNumberLiteral
focal_class.modifiers: public
focal_class.parameters: (double value, int numFracDigits)
focal_class.return: void
focal_class.signature: void writeNumberLiteral(double value, int numFracDigits)
focal_class.class_method_signature: AJsonSerHelper.writeBooleanLiteral(boolean value)
focal_class.full_signature: public void writeBooleanLiteral(boolean value)
focal_class.identifier: writeBooleanLiteral
focal_class.modifiers: public
focal_class.parameters: (boolean value)
focal_class.return: void
focal_class.signature: void writeBooleanLiteral(boolean value)
focal_class.class_method_signature: AJsonSerHelper.writeNullLiteral()
focal_class.full_signature: public void writeNullLiteral()
focal_class.identifier: writeNullLiteral
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeNullLiteral()
focal_class.class_method_signature: AJsonSerHelper.writeIntLiteral(int value)
focal_class.full_signature: public void writeIntLiteral(int value)
focal_class.identifier: writeIntLiteral
focal_class.modifiers: public
focal_class.parameters: (int value)
focal_class.return: void
focal_class.signature: void writeIntLiteral(int value)
focal_class.class_method_signature: AJsonSerHelper.writeLongLiteral(long value)
focal_class.full_signature: public void writeLongLiteral(long value)
focal_class.identifier: writeLongLiteral
focal_class.modifiers: public
focal_class.parameters: (long value)
focal_class.return: void
focal_class.signature: void writeLongLiteral(long value)
focal_class.class_method_signature: AJsonSerHelper.writeStringArray(Iterable<String> values)
focal_class.full_signature: public void writeStringArray(Iterable<String> values)
focal_class.identifier: writeStringArray
focal_class.modifiers: public
focal_class.parameters: (Iterable<String> values)
focal_class.return: void
focal_class.signature: void writeStringArray(Iterable<String> values)
focal_class.class_method_signature: AJsonSerHelper.writeStringField(String key, String value)
focal_class.full_signature: public void writeStringField(String key, String value)
focal_class.identifier: writeStringField
focal_class.modifiers: public
focal_class.parameters: (String key, String value)
focal_class.return: void
focal_class.signature: void writeStringField(String key, String value)
focal_class.class_method_signature: AJsonSerHelper.writeBooleanField(String key, Boolean value)
focal_class.full_signature: public void writeBooleanField(String key, Boolean value)
focal_class.identifier: writeBooleanField
focal_class.modifiers: public
focal_class.parameters: (String key, Boolean value)
focal_class.return: void
focal_class.signature: void writeBooleanField(String key, Boolean value)
focal_class.class_method_signature: AJsonSerHelper.writeIntField(String key, Integer value)
focal_class.full_signature: public void writeIntField(String key, Integer value)
focal_class.identifier: writeIntField
focal_class.modifiers: public
focal_class.parameters: (String key, Integer value)
focal_class.return: void
focal_class.signature: void writeIntField(String key, Integer value)
focal_class.class_method_signature: AJsonSerHelper.writeLongField(String key, Long value)
focal_class.full_signature: public void writeLongField(String key, Long value)
focal_class.identifier: writeLongField
focal_class.modifiers: public
focal_class.parameters: (String key, Long value)
focal_class.return: void
focal_class.signature: void writeLongField(String key, Long value)
focal_class.class_method_signature: AJsonSerHelper.buildString(AStatement1<AJsonSerHelper, E> code)
focal_class.full_signature: public static String buildString(AStatement1<AJsonSerHelper, E> code)
focal_class.identifier: buildString
focal_class.modifiers: public static
focal_class.parameters: (AStatement1<AJsonSerHelper, E> code)
focal_class.return: String
focal_class.signature: String buildString(AStatement1<AJsonSerHelper, E> code)
focal_class.class_method_signature: AJsonSerHelper.writeCommaInObject()
focal_class.full_signature: protected void writeCommaInObject()
focal_class.identifier: writeCommaInObject
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeCommaInObject()
focal_class.class_method_signature: AJsonSerHelper.writeCommaInArray()
focal_class.full_signature: protected void writeCommaInArray()
focal_class.identifier: writeCommaInArray
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeCommaInArray()
focal_class.class_method_signature: AJsonSerHelper.writeColonAfterKey()
focal_class.full_signature: protected void writeColonAfterKey()
focal_class.identifier: writeColonAfterKey
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeColonAfterKey()
focal_class.class_method_signature: AJsonSerHelper.checkAcceptsValueAndPrefixComma()
focal_class.full_signature: protected void checkAcceptsValueAndPrefixComma()
focal_class.identifier: checkAcceptsValueAndPrefixComma
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkAcceptsValueAndPrefixComma()
focal_class.class_method_signature: AJsonSerHelper.afterValueWritten()
focal_class.full_signature: protected void afterValueWritten()
focal_class.identifier: afterValueWritten
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void afterValueWritten()
focal_class.class_method_signature: AJsonSerHelper.checkInObject()
focal_class.full_signature: private void checkInObject()
focal_class.identifier: checkInObject
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkInObject()
focal_class.class_method_signature: AJsonSerHelper.checkInArray()
focal_class.full_signature: private void checkInArray()
focal_class.identifier: checkInArray
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void checkInArray()
focal_class.class_method_signature: AJsonSerHelper.replaceState(JsonSerState newState)
focal_class.full_signature: private void replaceState(JsonSerState newState)
focal_class.identifier: replaceState
focal_class.modifiers: private
focal_class.parameters: (JsonSerState newState)
focal_class.return: void
focal_class.signature: void replaceState(JsonSerState newState)
focal_class.class_method_signature: AJsonSerHelper.state()
focal_class.full_signature: protected JsonSerState state()
focal_class.identifier: state
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: JsonSerState
focal_class.signature: JsonSerState state()
focal_method.body: public void writeNumberLiteral (long value, int numFracDigits) throws IOException {
          checkAcceptsValueAndPrefixComma ();
  
          if (value < 0) {
              out.write ('-');
              value = -value;
          }
  
          if (numFracDigits == 0) {
              out.write (String.valueOf (value));
          }
          else {
              final long intPart = value / TEN_POW[numFracDigits];
              final String fracPart = String.valueOf (1_000_000_000 + value % TEN_POW[numFracDigits]).substring (10 - numFracDigits, 10);
  
              out.write (String.valueOf (intPart));
              out.write (".");
              out.write (fracPart);
          }
  
          afterValueWritten ();
      }
focal_method.class_method_signature: AJsonSerHelper.writeNumberLiteral(long value, int numFracDigits)
focal_method.full_signature: public void writeNumberLiteral(long value, int numFracDigits)
focal_method.identifier: writeNumberLiteral
focal_method.invocations: checkAcceptsValueAndPrefixComma write write valueOf substring valueOf write valueOf write write afterValueWritten
focal_method.modifiers: public
focal_method.parameters: (long value, int numFracDigits)
focal_method.return: void
focal_method.signature: void writeNumberLiteral(long value, int numFracDigits)