Class TypeList.Generic.ForDetachedTypes

    • Constructor Detail

      • ForDetachedTypes

        public ForDetachedTypes​(java.util.List<? extends TypeDescription.Generic> detachedTypes,
                                TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
        Creates a list of detached types that are attached on reception.
        Parameters:
        detachedTypes - The detached types this list represents.
        visitor - The visitor to use for attaching the detached types.
    • Method Detail

      • attachVariables

        public static TypeList.Generic attachVariables​(TypeDescription typeDescription,
                                                       java.util.List<? extends TypeVariableToken> detachedTypeVariables)
        Creates a list of type variables that are attached to the provided type.
        Parameters:
        typeDescription - The type to which the type variables are to be attached to.
        detachedTypeVariables - A mapping of type variable symbols to their detached type variable bounds.
        Returns:
        A type list representing the symbolic type variables in their attached state to the given type description.
      • attach

        public static TypeList.Generic attach​(FieldDescription fieldDescription,
                                              java.util.List<? extends TypeDescription.Generic> detachedTypes)
        Creates a list of types that are attached to the provided field.
        Parameters:
        fieldDescription - The field to which the detached variables are attached to.
        detachedTypes - The detached types.
        Returns:
        A type list representing the detached types being attached to the provided field description.
      • attach

        public static TypeList.Generic attach​(MethodDescription methodDescription,
                                              java.util.List<? extends TypeDescription.Generic> detachedTypes)
        Creates a list of types that are attached to the provided method.
        Parameters:
        methodDescription - The method to which the detached variables are attached to.
        detachedTypes - The detached types.
        Returns:
        A type list representing the detached types being attached to the provided method description.
      • attachVariables

        public static TypeList.Generic attachVariables​(MethodDescription methodDescription,
                                                       java.util.List<? extends TypeVariableToken> detachedTypeVariables)
        Creates a list of type variables that are attached to the provided method.
        Parameters:
        methodDescription - The method to which the type variables are to be attached to.
        detachedTypeVariables - A mapping of type variable symbols to their detached type variable bounds.
        Returns:
        A type list representing the symbolic type variables in their attached state to the given method description.
      • attach

        public static TypeList.Generic attach​(ParameterDescription parameterDescription,
                                              java.util.List<? extends TypeDescription.Generic> detachedTypes)
        Creates a list of types that are attached to the provided parameter.
        Parameters:
        parameterDescription - The parameter to which the detached variables are attached to.
        detachedTypes - The detached types.
        Returns:
        A type list representing the detached types being attached to the provided parameter description.