Class CoderClass

    • Field Detail

      • it

        public static final org.jsonex.core.factory.InjectableInstance<CoderClass> it
    • Constructor Detail

      • CoderClass

        public CoderClass()
    • Method Detail

      • encode

        public TDNode encode​(Class obj,
                             Type type,
                             BeanCoderContext context,
                             TDNode target)
        Description copied from interface: ICoder
        Encode an Object
        Specified by:
        encode in interface ICoder<Class>
        Parameters:
        obj - The Object to encode
        context - Encode context
        target - The target json TDNode
        Returns:
        The target passed as parameter
      • decode

        public Class decode​(TDNode jsonNode,
                            Type type,
                            Object targetObj,
                            BeanCoderContext context)
        Description copied from interface: ICoder
        Decode an Object
        Specified by:
        decode in interface ICoder<Class>
        Parameters:
        jsonNode - The json TDNode to be decoded
        type - The target type
        context - Decode context
        Returns:
        The decoded Object