Class ResolvedType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.reflect.Type
    Direct Known Subclasses:
    RecursiveType

    public class ResolvedType
    extends java.lang.Object
    implements java.lang.reflect.Type, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ResolvedType

        protected ResolvedType​(java.lang.Class<?> cls)
      • ResolvedType

        protected ResolvedType​(java.lang.Class<?> cls,
                               TypeBindings bindings)
    • Method Detail

      • erasedType

        public java.lang.Class<?> erasedType()
      • isArray

        public boolean isArray()
      • implInterfaces

        public final java.util.List<ResolvedType> implInterfaces()
      • typeParams

        public java.util.List<ResolvedType> typeParams()
      • typeParametersFor

        public java.util.List<ResolvedType> typeParametersFor​(java.lang.Class<?> erasedSupertype)
        Method that will try to find type parameterization this type has for specified super type
        Returns:
        List of type parameters for specified supertype (which may be empty, if supertype is not a parametric type); null if specified type is not a super type of this type
      • findSupertype

        public ResolvedType findSupertype​(java.lang.Class<?> erasedSupertype)
        Method for finding super type of this type that has specified type erased signature. If supertype is an interface which is implemented using multiple inheritance paths, preference is given to interfaces implemented "highest up the stack" (directly implemented interfaces over interfaces superclass implements).
      • getDesc

        public java.lang.String getDesc()
      • appendDesc

        public java.lang.StringBuilder appendDesc​(java.lang.StringBuilder sb)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • _appendClassDesc

        protected java.lang.StringBuilder _appendClassDesc​(java.lang.StringBuilder sb)