Class TypeBase

    • Constructor Detail

      • TypeBase

        @Deprecated
        protected TypeBase​(java.lang.Class<?> raw,
                           int hash)
        Deprecated.
      • TypeBase

        protected TypeBase​(java.lang.Class<?> raw,
                           int hash,
                           java.lang.Object valueHandler,
                           java.lang.Object typeHandler)
        Main constructor to use by extending classes.
        Since:
        1.9
    • Method Detail

      • toCanonical

        public java.lang.String toCanonical()
        Description copied from class: JavaType
        Method that can be used to serialize type into form from which it can be fully deserialized from at a later point (using TypeFactory from mapper package). For simple types this is same as calling Class.getName(), but for structured types it may additionally contain type information about contents.
        Specified by:
        toCanonical in class JavaType
      • buildCanonicalName

        protected abstract java.lang.String buildCanonicalName()
      • getGenericSignature

        public abstract java.lang.StringBuilder getGenericSignature​(java.lang.StringBuilder sb)
        Specified by:
        getGenericSignature in class JavaType
        Parameters:
        sb - StringBuilder to append signature to
        Returns:
        StringBuilder that was passed in; returned to allow call chaining
      • getErasedSignature

        public abstract java.lang.StringBuilder getErasedSignature​(java.lang.StringBuilder sb)
        Description copied from class: JavaType
        Method for accessing signature without generic type information, in form compatible with all versions of JVM, and specifically used for type descriptions when generating byte code.
        Specified by:
        getErasedSignature in class JavaType
        Parameters:
        sb - StringBuilder to append signature to
        Returns:
        StringBuilder that was passed in; returned to allow call chaining
      • getValueHandler

        public <T> T getValueHandler()
        Description copied from class: JavaType
        Method for accessing value handler associated with this type, if any
        Overrides:
        getValueHandler in class JavaType
      • getTypeHandler

        public <T> T getTypeHandler()
        Description copied from class: JavaType
        Method for accessing type handler associated with this type, if any
        Overrides:
        getTypeHandler in class JavaType
      • _classSignature

        protected static java.lang.StringBuilder _classSignature​(java.lang.Class<?> cls,
                                                                 java.lang.StringBuilder sb,
                                                                 boolean trailingSemicolon)
        Parameters:
        trailingSemicolon - Whether to add trailing semicolon for non-primitive (reference) types or not