Class DynamicMappingGenerator.InObjectOrPrimitiveJsonGenerator

    • Field Detail

      • delegate

        private final jakarta.json.stream.JsonGenerator delegate
      • writeStart

        private final Runnable writeStart
      • writeEnd

        private final Runnable writeEnd
      • keyIfNoObject

        private final String keyIfNoObject
      • nested

        private int nested
      • implicitStart

        private boolean implicitStart
    • Constructor Detail

      • InObjectOrPrimitiveJsonGenerator

        private InObjectOrPrimitiveJsonGenerator​(jakarta.json.stream.JsonGenerator generator,
                                                 Runnable writeStart,
                                                 String keyName,
                                                 Runnable writeEnd)
    • Method Detail

      • ensureStart

        private void ensureStart()
      • writeStartObject

        public jakarta.json.stream.JsonGenerator writeStartObject()
        Specified by:
        writeStartObject in interface jakarta.json.stream.JsonGenerator
      • writeStartObject

        public jakarta.json.stream.JsonGenerator writeStartObject​(String name)
        Specified by:
        writeStartObject in interface jakarta.json.stream.JsonGenerator
      • writeStartArray

        public jakarta.json.stream.JsonGenerator writeStartArray()
        Specified by:
        writeStartArray in interface jakarta.json.stream.JsonGenerator
      • writeStartArray

        public jakarta.json.stream.JsonGenerator writeStartArray​(String name)
        Specified by:
        writeStartArray in interface jakarta.json.stream.JsonGenerator
      • writeKey

        public jakarta.json.stream.JsonGenerator writeKey​(String name)
        Specified by:
        writeKey in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       jakarta.json.JsonValue value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       String value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       BigInteger value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       BigDecimal value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       int value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       long value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       double value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String name,
                                                       boolean value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • writeNull

        public jakarta.json.stream.JsonGenerator writeNull​(String name)
        Specified by:
        writeNull in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(jakarta.json.JsonValue value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(String value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(BigDecimal value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(BigInteger value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(int value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(long value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(double value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • write

        public jakarta.json.stream.JsonGenerator write​(boolean value)
        Specified by:
        write in interface jakarta.json.stream.JsonGenerator
      • writeNull

        public jakarta.json.stream.JsonGenerator writeNull()
        Specified by:
        writeNull in interface jakarta.json.stream.JsonGenerator
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface jakarta.json.stream.JsonGenerator
      • flush

        public void flush()
        Specified by:
        flush in interface Flushable
        Specified by:
        flush in interface jakarta.json.stream.JsonGenerator
      • writeEnd

        public jakarta.json.stream.JsonGenerator writeEnd()
        Specified by:
        writeEnd in interface jakarta.json.stream.JsonGenerator
      • doWriteEnd

        private jakarta.json.stream.JsonGenerator doWriteEnd​(boolean useDelegate)
      • unwrap

        private jakarta.json.stream.JsonGenerator unwrap​(jakarta.json.stream.JsonGenerator delegate)
      • endIfNeeded

        public void endIfNeeded()
      • isWritingPrimitive

        private boolean isWritingPrimitive()
      • endIfNeeded

        public static void endIfNeeded​(jakarta.json.stream.JsonGenerator generator)