Class TypeList.Generic.ForDetachedTypes

All Implemented Interfaces:
Iterable<TypeDescription.Generic>, Collection<TypeDescription.Generic>, List<TypeDescription.Generic>, TypeList.Generic, FilterableList<TypeDescription.Generic,TypeList.Generic>
Enclosing interface:
TypeList.Generic

public static class TypeList.Generic.ForDetachedTypes extends TypeList.Generic.AbstractBase
A list of detached types that are attached on reception.
  • Field Details

  • Constructor Details

  • Method Details

    • attachVariables

      public static TypeList.Generic attachVariables(TypeDescription typeDescription, 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, 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, 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, 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, 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.
    • get

      public TypeDescription.Generic get(int index)
      Specified by:
      get in interface List<TypeDescription.Generic>
      Specified by:
      get in class AbstractList<TypeDescription.Generic>
    • size

      public int size()
      Specified by:
      size in interface Collection<TypeDescription.Generic>
      Specified by:
      size in interface List<TypeDescription.Generic>
      Specified by:
      size in class AbstractCollection<TypeDescription.Generic>