Package net.bytebuddy.description.type
Interface TypeList.Generic
-
- All Superinterfaces:
java.util.Collection<TypeDescription.Generic>,FilterableList<TypeDescription.Generic,TypeList.Generic>,java.lang.Iterable<TypeDescription.Generic>,java.util.List<TypeDescription.Generic>
- All Known Implementing Classes:
TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceList,TypeDescription.Generic.OfParameterizedType.ForLoadedType.ParameterArgumentTypeList,TypeDescription.Generic.OfTypeVariable.ForLoadedType.TypeVariableBoundList,TypeDescription.Generic.OfWildcardType.ForLoadedType.WildcardLowerBoundTypeList,TypeDescription.Generic.OfWildcardType.ForLoadedType.WildcardUpperBoundTypeList,TypeDescription.SuperTypeLoading.ClassLoadingTypeList,TypeList.Generic.AbstractBase,TypeList.Generic.Empty,TypeList.Generic.Explicit,TypeList.Generic.ForDetachedTypes,TypeList.Generic.ForDetachedTypes.OfTypeVariables,TypeList.Generic.ForDetachedTypes.WithResolvedErasure,TypeList.Generic.ForLoadedTypes,TypeList.Generic.ForLoadedTypes.OfTypeVariables,TypeList.Generic.OfConstructorExceptionTypes,TypeList.Generic.OfLoadedInterfaceTypes,TypeList.Generic.OfMethodExceptionTypes,TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable.LazyBoundTokenList,TypePool.Default.LazyTypeDescription.GenericTypeToken.LazyTokenList,TypePool.Default.LazyTypeDescription.GenericTypeToken.LazyTokenList.ForWildcardBound,TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType.LazyRawAnnotatedTypeList,TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType.TypeArgumentList,TypePool.Default.LazyTypeDescription.TokenizedGenericType.Malformed.TokenList,TypePool.Default.LazyTypeDescription.TokenizedGenericType.TokenList,TypePool.Default.LazyTypeDescription.TokenizedGenericType.TypeVariableList
- Enclosing interface:
- TypeList
public static interface TypeList.Generic extends FilterableList<TypeDescription.Generic,TypeList.Generic>
A list containing descriptions of generic types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTypeList.Generic.AbstractBaseAn abstract base implementation of a generic type list.static classTypeList.Generic.EmptyAn empty list of generic types.static classTypeList.Generic.ExplicitAn explicit list of generic types.static classTypeList.Generic.ForDetachedTypesA list of detached types that are attached on reception.static classTypeList.Generic.ForLoadedTypesA list of loaded generic types.static classTypeList.Generic.OfConstructorExceptionTypesA lazy projection of a constructor's exception types.static classTypeList.Generic.OfLoadedInterfaceTypesA lazy projection of a type's generic interface types.static classTypeList.Generic.OfMethodExceptionTypesA lazy projection of a method's exception types.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeList.Genericaccept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)Transforms the generic types by applying the supplied visitor to each of them.TypeListasErasures()Returns a list of the generic types' erasures.TypeList.GenericasRawTypes()Returns a list of the generic types' raw types.ByteCodeElement.Token.TokenList<TypeVariableToken>asTokenList(ElementMatcher<? super TypeDescription> visitor)Transforms a list of attached type variables into their tokenized form.intgetStackSize()Returns the sum of the size of all types contained in this list.-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Method Detail
-
asErasures
TypeList asErasures()
Returns a list of the generic types' erasures.- Returns:
- A list of the generic types' erasures.
-
asRawTypes
TypeList.Generic asRawTypes()
Returns a list of the generic types' raw types.- Returns:
- A list of the generic types' raw types.
-
asTokenList
ByteCodeElement.Token.TokenList<TypeVariableToken> asTokenList(ElementMatcher<? super TypeDescription> visitor)
Transforms a list of attached type variables into their tokenized form. Calling this method throws anIllegalStateExceptionif any type in this list does not represent a type variable (TypeDefinition.Sort.VARIABLE).- Parameters:
visitor- The visitor to use for detaching the type variable's bounds.- Returns:
- A list of tokens representing the type variables contained in this list.
-
accept
TypeList.Generic accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms the generic types by applying the supplied visitor to each of them.- Parameters:
visitor- The visitor to apply to each type.- Returns:
- A list of the types returned by the supplied visitor.
-
getStackSize
int getStackSize()
Returns the sum of the size of all types contained in this list.- Returns:
- The sum of the size of all types contained in this list.
-
-