Package net.bytebuddy.description.type
Interface TypeList
-
- All Superinterfaces:
java.util.Collection<TypeDescription>,FilterableList<TypeDescription,TypeList>,java.lang.Iterable<TypeDescription>,java.util.List<TypeDescription>
- All Known Implementing Classes:
TypeList.AbstractBase,TypeList.Empty,TypeList.Explicit,TypeList.ForLoadedTypes,TypePool.Default.LazyTypeDescription.LazyNestMemberList,TypePool.Default.LazyTypeDescription.LazyTypeList
public interface TypeList extends FilterableList<TypeDescription,TypeList>
Implementations represent a list of type descriptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTypeList.AbstractBaseAn abstract base implementation of a type list.static classTypeList.EmptyAn implementation of an empty type list.static classTypeList.ExplicitA wrapper implementation of an explicit list of types.static classTypeList.ForLoadedTypesImplementation of a type list for an array of loaded types.static interfaceTypeList.GenericA list containing descriptions of generic types.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]NO_INTERFACESRepresents that a type list does not contain any values for ASM interoperability which is represented bynull.static TypeListUNDEFINEDAnnulltype list.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TypeList.GenericasGenericTypes()Returns a generic list of types.intgetStackSize()Returns the sum of the size of all types contained in this list.java.lang.String[]toInternalNames()Returns a list of internal names of all types represented by this list.-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Field Detail
-
UNDEFINED
@AlwaysNull static final TypeList UNDEFINED
Annulltype list.
-
NO_INTERFACES
@AlwaysNull static final java.lang.String[] NO_INTERFACES
Represents that a type list does not contain any values for ASM interoperability which is represented bynull.
-
-
Method Detail
-
toInternalNames
@MaybeNull java.lang.String[] toInternalNames()
Returns a list of internal names of all types represented by this list.- Returns:
- An array of all internal names or
nullif the list is empty.
-
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.
-
asGenericTypes
TypeList.Generic asGenericTypes()
Returns a generic list of types.- Returns:
- A representation of these types in a generic format.
-
-