Package net.bytebuddy.description.method
Interface MethodList<T extends MethodDescription>
-
- Type Parameters:
T
- The type of method descriptions represented by this list.
- All Superinterfaces:
Collection<T>
,FilterableList<T,MethodList<T>>
,Iterable<T>
,List<T>
- All Known Implementing Classes:
MethodList.AbstractBase
,MethodList.Empty
,MethodList.Explicit
,MethodList.ForLoadedMethods
,MethodList.ForTokens
,MethodList.TypeSubstituting
,TypePool.Default.LazyTypeDescription.MethodTokenList
public interface MethodList<T extends MethodDescription> extends FilterableList<T,MethodList<T>>
Implementations represent a list of method descriptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MethodList.AbstractBase<S extends MethodDescription>
A base implementation of aMethodList
.static class
MethodList.Empty<S extends MethodDescription>
An implementation of an empty method list.static class
MethodList.Explicit<S extends MethodDescription>
A method list that is a wrapper for a given list of method descriptions.static class
MethodList.ForLoadedMethods
A method list implementation that returns all loaded byte code methods (methods and constructors) that are declared for a given type.static class
MethodList.ForTokens
A list of method descriptions for a list of detached tokens.static class
MethodList.TypeSubstituting
A list of method descriptions that yieldsMethodDescription.TypeSubstituting
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodList<MethodDescription.InDefinedShape>
asDefined()
Returns this list of these method descriptions resolved to their defined shape.ByteCodeElement.Token.TokenList<MethodDescription.Token>
asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of method descriptions into a list of detached tokens.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
asTokenList
ByteCodeElement.Token.TokenList<MethodDescription.Token> asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of method 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
MethodList<MethodDescription.InDefinedShape> asDefined()
Returns this list of these method descriptions resolved to their defined shape.- Returns:
- A list of methods in their defined shape.
-
-