Class GenericMetadataSupport

    • Field Detail

      • contextualActualTypeParameters

        protected java.util.Map<java.lang.reflect.TypeVariable<?>,​java.lang.reflect.Type> contextualActualTypeParameters
        Represents actual type variables resolved for current class.
    • Constructor Detail

      • GenericMetadataSupport

        public GenericMetadataSupport()
    • Method Detail

      • registerAllTypeVariables

        protected void registerAllTypeVariables​(java.lang.reflect.Type classType)
        Registers the type variables for the given type and all of its superclasses and superinterfaces.
      • extractRawTypeOf

        protected java.lang.Class<?> extractRawTypeOf​(java.lang.reflect.Type type)
      • registerTypeVariablesOn

        protected void registerTypeVariablesOn​(java.lang.reflect.Type classType)
      • registerTypeParametersOn

        protected void registerTypeParametersOn​(java.lang.reflect.TypeVariable<?>[] typeParameters)
      • registerTypeVariableIfNotPresent

        private void registerTypeVariableIfNotPresent​(java.lang.reflect.TypeVariable<?> typeVariable)
      • rawType

        public abstract java.lang.Class<?> rawType()
        Returns:
        Raw type of the current instance.
      • extraInterfaces

        public java.util.List<java.lang.reflect.Type> extraInterfaces()
        Returns:
        Returns extra interfaces if relevant, otherwise empty List.
      • rawExtraInterfaces

        public java.lang.Class<?>[] rawExtraInterfaces()
        Returns:
        Returns an array with the raw types of extraInterfaces() if relevant.
      • hasRawExtraInterfaces

        public boolean hasRawExtraInterfaces()
        Returns:
        Returns true if metadata knows about extra-interfaces extraInterfaces() if relevant.
      • actualTypeArguments

        public java.util.Map<java.lang.reflect.TypeVariable<?>,​java.lang.reflect.Type> actualTypeArguments()
        Returns:
        Actual type arguments matching the type variables of the raw type represented by this GenericMetadataSupport instance.
      • getActualTypeArgumentFor

        protected java.lang.reflect.Type getActualTypeArgumentFor​(java.lang.reflect.TypeVariable<?> typeParameter)
      • resolveGenericType

        private GenericMetadataSupport resolveGenericType​(java.lang.reflect.Type type,
                                                          java.lang.reflect.Method method)