Interface FieldList<T extends FieldDescription>
- Type Parameters:
T- The type of field descriptions represented by this list.
- All Superinterfaces:
Collection<T>, FilterableList<T, FieldList<T>>, Iterable<T>, List<T>, SequencedCollection<T>
- All Known Implementing Classes:
FieldList.AbstractBase, FieldList.Empty, FieldList.Explicit, FieldList.ForLoadedFields, FieldList.ForTokens, FieldList.TypeSubstituting, TypePool.Default.LazyTypeDescription.FieldTokenList, TypeWriter.Default.ForInlining.WithDecorationOnly.LazyFieldList
Implementations represent a list of field descriptions.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFieldList.AbstractBase<S extends FieldDescription>An abstract base implementation of aFieldList.static classFieldList.Empty<S extends FieldDescription>An implementation of an empty field list.static classFieldList.Explicit<S extends FieldDescription>A wrapper implementation of a field list for a given list of field descriptions.static classAn implementation of a field list for an array of loaded fields.static classA list of field descriptions for a list of detached tokens.static classA list of field descriptions that yieldsFieldDescription.TypeSubstituting. -
Method Summary
Modifier and TypeMethodDescriptionReturns this list of these field descriptions resolved to their defined shape.asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens.Methods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface FilterableList
filter, getOnly, subListMethods inherited from interface List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, toArray, toArray
-
Method Details
-
asTokenList
ByteCodeElement.Token.TokenList<FieldDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher) Transforms the list of field descriptions into a list of detached tokens. All types that are matched by the provided target type matcher are substituted byTargetType.- Parameters:
matcher- A matcher that indicates type substitution.- Returns:
- The transformed token list.
-
asDefined
FieldList<FieldDescription.InDefinedShape> asDefined()Returns this list of these field descriptions resolved to their defined shape.- Returns:
- A list of fields in their defined shape.
-