Package net.bytebuddy.description.field
Interface FieldList<T extends FieldDescription>
-
- Type Parameters:
T
- The type of field descriptions represented by this list.
- All Superinterfaces:
java.util.Collection<T>
,FilterableList<T,FieldList<T>>
,java.lang.Iterable<T>
,java.util.List<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
public interface FieldList<T extends FieldDescription> extends FilterableList<T,FieldList<T>>
Implementations represent a list of field descriptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FieldList.AbstractBase<S extends FieldDescription>
An abstract base implementation of aFieldList
.static class
FieldList.Empty<S extends FieldDescription>
An implementation of an empty field list.static class
FieldList.Explicit<S extends FieldDescription>
A wrapper implementation of a field list for a given list of field descriptions.static class
FieldList.ForLoadedFields
An implementation of a field list for an array of loaded fields.static class
FieldList.ForTokens
A list of field descriptions for a list of detached tokens.static class
FieldList.TypeSubstituting
A list of field descriptions that yieldsFieldDescription.TypeSubstituting
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldList<FieldDescription.InDefinedShape>
asDefined()
Returns this list of these field descriptions resolved to their defined shape.ByteCodeElement.Token.TokenList<FieldDescription.Token>
asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of field descriptions into a list of detached tokens.-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
Method Detail
-
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.
-
-