Modifier and Type | Class and Description |
---|---|
public abstract static class | MethodList.AbstractBase<
The type of method descriptions represented by this list. S extends MethodDescription>A base implementation of a |
public static class | MethodList.Empty<
The type of parameter descriptions represented by this list. S extends MethodDescription>An implementation of an empty method list. |
public static class | MethodList.Explicit<
The type of method descriptions represented by this list. S extends MethodDescription>A method list that is a wrapper for a given list of method descriptions. |
public 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. |
public static class | MethodList.ForTokens
A list of method descriptions for a list of detached tokens. |
public static class | MethodList.TypeSubstituting
A list of method descriptions that yields |
Modifier and Type | Method and Description |
---|---|
public MethodList | Returns: A list of methods in their defined shape.Returns this list of these method descriptions resolved to their defined shape. |
public List | Returns: A list of signature tokens for this list of methods.Returns a list of signature tokens for this list of methods. |
public List | Returns: A list of signature tokens for this list of methods.A matcher for resolving methods to matcher, TypeDescription net. s.The type description to resolve the typeDescription)net. s to.Returns a list of signature tokens for this list of methods. |
public ByteCodeElement. | Returns: The transformed token list.A matcher that indicates type substitution. matcher)Transforms the list of method descriptions into a list of detached tokens. |
asDefined | back to summary |
---|---|
public MethodList Returns this list of these method descriptions resolved to their defined shape.
|
asSignatureTokenList | back to summary |
---|---|
public List Returns a list of signature tokens for this list of methods.
|
asSignatureTokenList | back to summary |
---|---|
public List Returns a list of signature tokens for this list of methods.
|
asTokenList | back to summary |
---|---|
public ByteCodeElement. 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 by
|
MethodList
.
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public MethodList | asDefined()
Implements net. |
public List | asSignatureTokenList()
Implements net. |
public List | asSignatureTokenList(ElementMatcher<? super TypeDescription>
A matcher for resolving methods to matcher, TypeDescription net. s.The type description to resolve the typeDescription)net. s to.Implements net. |
public ByteCodeElement. | asTokenList(ElementMatcher<? super TypeDescription>
A matcher that indicates type substitution. matcher)Implements net. |
protected MethodList | wrap(List<S>
The values to wrap in an instance of this list's type. values)Implements abstract net. |
AbstractBase | back to summary |
---|---|
public AbstractBase() |
asDefined | back to summary |
---|---|
public MethodList Implements net. Doc from net. Returns this list of these method descriptions resolved to their defined shape.
|
asSignatureTokenList | back to summary |
---|---|
public List Implements net. Doc from net. Returns a list of signature tokens for this list of methods.
|
asSignatureTokenList | back to summary |
---|---|
public List Implements net. Doc from net. Returns a list of signature tokens for this list of methods.
|
asTokenList | back to summary |
---|---|
public ByteCodeElement. Implements net. Doc from net. 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 by
|
wrap | back to summary |
---|---|
protected MethodList Implements abstract net. Doc from net. Represents a list of values as an instance of this instance's list type.
|
Access | Constructor and Description |
---|---|
public |
Empty | back to summary |
---|---|
public Empty() |
asDefined | back to summary |
---|---|
public MethodList Implements net. Doc from net. Returns this list of these method descriptions resolved to their defined shape.
|
asSignatureTokenList | back to summary |
---|---|
public List Implements net. Doc from net. Returns a list of signature tokens for this list of methods.
|
asSignatureTokenList | back to summary |
---|---|
public List Implements net. Doc from net. Returns a list of signature tokens for this list of methods.
|
asTokenList | back to summary |
---|---|
public ByteCodeElement. Implements net. Doc from net. 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 by
|
Modifier and Type | Field and Description |
---|---|
private final List | methodDescriptions
The list of methods that is represented by this method list. |
Access | Constructor and Description |
---|---|
public | Explicit(S...
The underlying list of methods used for this method list. methodDescription)Creates a new wrapper for a given list of methods. |
public |
Modifier and Type | Method and Description |
---|---|
public S | get(int
index of the element to return index)Implements abstract java. Implements java. |
public int | size()
Implements abstract java. Implements java. |
methodDescriptions | back to summary |
---|---|
private final List<? extends S> methodDescriptions The list of methods that is represented by this method list. |
Explicit | back to summary |
---|---|
public Explicit(S... methodDescription) Creates a new wrapper for a given list of methods.
|
Explicit | back to summary |
---|---|
public Explicit(List<? extends S> methodDescriptions) Creates a new wrapper for a given list of methods.
|
get | back to summary |
---|---|
public S get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
|
size | back to summary |
---|---|
public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
|
Modifier and Type | Field and Description |
---|---|
private final List | constructors
The loaded constructors that are represented by this method list. |
private final List | methods
The loaded methods that are represented by this method list. |
Access | Constructor and Description |
---|---|
public | ForLoadedMethods(Class<?>
The type to be represented by this method list. type)Creates a new list for a loaded type. |
public | ForLoadedMethods(Constructor<?>[]
The constructors to be represented by the method list. constructor, Method[] The methods to be represented by the method list. method)Creates a method list that represents the given constructors and methods in their given order. |
public | ForLoadedMethods(List<? extends Constructor<?>>
The constructors to be represented by the method list. constructors, List<? extends Method> The methods to be represented by the method list. methods)Creates a method list that represents the given constructors and methods in their given order. |
Modifier and Type | Method and Description |
---|---|
public MethodDescription. | get(int
index of the element to return index)Implements abstract java. Implements java. |
public int | size()
Implements abstract java. Implements java. |
constructors | back to summary |
---|---|
private final List<? extends Constructor<?>> constructors The loaded constructors that are represented by this method list. |
methods | back to summary |
---|---|
private final List<? extends Method> methods The loaded methods that are represented by this method list. |
ForLoadedMethods | back to summary |
---|---|
public ForLoadedMethods(Class<?> type) Creates a new list for a loaded type. Method descriptions are created on demand.
|
ForLoadedMethods | back to summary |
---|---|
public ForLoadedMethods(Constructor<?>[] constructor, Method[] method) Creates a method list that represents the given constructors and methods in their given order. The constructors are assigned the indices before the methods.
|
ForLoadedMethods | back to summary |
---|---|
public ForLoadedMethods(List<? extends Constructor<?>> constructors, List<? extends Method> methods) Creates a method list that represents the given constructors and methods in their given order. The constructors are assigned the indices before the methods.
|
get | back to summary |
---|---|
public MethodDescription. Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
|
size | back to summary |
---|---|
public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
|
Modifier and Type | Field and Description |
---|---|
private final TypeDescription | declaringType
The method's declaring type. |
private final List | tokens
The list of method tokens to represent. |
Access | Constructor and Description |
---|---|
public | ForTokens(TypeDescription
The method's declaring type. declaringType, MethodDescription.The list of method tokens to represent. tokenCreates a new list of method descriptions for a list of detached tokens. |
public | ForTokens(TypeDescription
The method's declaring type. declaringType, List<? extends MethodDescription.The list of method tokens to represent. tokens)Creates a new list of method descriptions for a list of detached tokens. |
Modifier and Type | Method and Description |
---|---|
public MethodDescription. | get(int
index of the element to return index)Implements abstract java. Implements java. |
public int | size()
Implements abstract java. Implements java. |
declaringType | back to summary |
---|---|
private final TypeDescription declaringType The method's declaring type. |
tokens | back to summary |
---|---|
private final List<? extends MethodDescription. The list of method tokens to represent. |
ForTokens | back to summary |
---|---|
public ForTokens(TypeDescription declaringType, MethodDescription. Creates a new list of method descriptions for a list of detached tokens.
|
ForTokens | back to summary |
---|---|
public ForTokens(TypeDescription declaringType, List<? extends MethodDescription. Creates a new list of method descriptions for a list of detached tokens.
|
get | back to summary |
---|---|
public MethodDescription. Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
|
size | back to summary |
---|---|
public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
|
net.bytebuddy.description.method.MethodDescription.TypeSubstituting
.
Modifier and Type | Field and Description |
---|---|
protected final TypeDescription. | declaringType
The methods' declaring type. |
protected final List | methodDescriptions
The list of method descriptions to represent. |
protected final TypeDescription. | visitor
The visitor to apply to each method description before returning it. |
Access | Constructor and Description |
---|---|
public | TypeSubstituting(TypeDescription.
The methods' declaring type. declaringType,The list of method descriptions to represent. methodDescriptions, TypeDescription.The visitor to apply to each method description before returning it. visitorCreates a new type substituting method list. |
Modifier and Type | Method and Description |
---|---|
public MethodDescription. | get(int
index of the element to return index)Implements abstract java. Implements java. |
public int | size()
Implements abstract java. Implements java. |
declaringType | back to summary |
---|---|
protected final TypeDescription. The methods' declaring type. |
methodDescriptions | back to summary |
---|---|
protected final List<? extends MethodDescription> methodDescriptions The list of method descriptions to represent. |
visitor | back to summary |
---|---|
protected final TypeDescription. The visitor to apply to each method description before returning it. |
TypeSubstituting | back to summary |
---|---|
public TypeSubstituting(TypeDescription. Creates a new type substituting method list.
|
get | back to summary |
---|---|
public MethodDescription. Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
|
size | back to summary |
---|---|
public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
|