Package net.bytebuddy.description.method
Interface MethodList<T extends MethodDescription>
-
- Type Parameters:
T- The type of method descriptions represented by this list.
- All Superinterfaces:
java.util.Collection<T>,FilterableList<T,MethodList<T>>,java.lang.Iterable<T>,java.util.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 classMethodList.AbstractBase<S extends MethodDescription>A base implementation of aMethodList.static classMethodList.Empty<S extends MethodDescription>An implementation of an empty method list.static classMethodList.Explicit<S extends MethodDescription>A method list that is a wrapper for a given list of method descriptions.static classMethodList.ForLoadedMethodsA method list implementation that returns all loaded byte code methods (methods and constructors) that are declared for a given type.static classMethodList.ForTokensA list of method descriptions for a list of detached tokens.static classMethodList.TypeSubstitutingA 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.java.util.List<MethodDescription.SignatureToken>asSignatureTokenList()Returns a list of signature tokens for this list of methods.java.util.List<MethodDescription.SignatureToken>asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)Returns a list of signature tokens for this list of methods.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 net.bytebuddy.matcher.FilterableList
filter, getOnly, subList
-
-
-
-
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.
-
asSignatureTokenList
java.util.List<MethodDescription.SignatureToken> asSignatureTokenList()
Returns a list of signature tokens for this list of methods.- Returns:
- A list of signature tokens for this list of methods.
-
asSignatureTokenList
java.util.List<MethodDescription.SignatureToken> asSignatureTokenList(ElementMatcher<? super TypeDescription> matcher, TypeDescription typeDescription)
Returns a list of signature tokens for this list of methods.- Parameters:
matcher- A matcher for resolving methods toMethodDescription.Tokens.typeDescription- The type description to resolve theMethodDescription.SignatureTokens to.- Returns:
- A list of signature tokens for this list of methods.
-
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.
-
-