Package 

Class TypeAnalyzer


  • 
    public abstract class TypeAnalyzer<T extends Object, R extends TypeReader<T>, W extends TypeWriter<T>, S extends Serializer<?>>
    
                        

    Type analyzers are the backend for many serializers, providing a format-agnostic way to implement the complex process of extracting serializable data from an object and later assembling that data back together into a new object.

    Type analyzers MUST be thread safe, however the TypeReader and TypeWriter objects they return might not be.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Prism<S> prism
      private final ConcreteTypeMirror type
    • Constructor Summary

      Constructors 
      Constructor Description
      TypeAnalyzer(Prism<S> prism, ConcreteTypeMirror type)
    • Method Summary

      Modifier and Type Method Description
      final Prism<S> getPrism()
      final ConcreteTypeMirror getType()
      final R getReader()
      final W getWriter(T value)
      final Unit release(R reader)
      final Unit release(W writer)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait