public static class MethodDelegation.MethodContainer.ForExplicitMethods extends Object implements MethodDelegation.MethodContainer
MethodDelegation.MethodContainer.ForExplicitMethods, MethodDelegation.MethodContainer.ForVirtualMethods
Modifier | Constructor and Description |
---|---|
protected |
ForExplicitMethods(MethodList<?> methodList)
Creates a new explicit method container.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
MethodDelegation.MethodContainer |
filter(ElementMatcher<? super MethodDescription> matcher)
Appends a filter that is applied to the methods that this container represents.
|
int |
hashCode() |
protected static MethodDelegation.MethodContainer |
ofConstructors(TypeDescription typeDescription)
Creates a container for all constructors of the given type description.
|
protected static MethodDelegation.MethodContainer |
ofStatic(TypeDescription typeDescription)
Creates a container for all static methods of the given type description.
|
MethodList<?> |
resolve(TypeDescription instrumentedType)
Resolves this method container to extract a list of methods to be considered for interception.
|
String |
toString() |
protected ForExplicitMethods(MethodList<?> methodList)
methodList
- The methods to be considered.protected static MethodDelegation.MethodContainer ofStatic(TypeDescription typeDescription)
typeDescription
- The type description of which all static methods should be considered.protected static MethodDelegation.MethodContainer ofConstructors(TypeDescription typeDescription)
typeDescription
- The type description of which all constructors should be considered.public MethodDelegation.MethodContainer filter(ElementMatcher<? super MethodDescription> matcher)
MethodDelegation.MethodContainer
filter
in interface MethodDelegation.MethodContainer
matcher
- The matcher that is to be applied for filtering methods.public MethodList<?> resolve(TypeDescription instrumentedType)
MethodDelegation.MethodContainer
resolve
in interface MethodDelegation.MethodContainer
instrumentedType
- The instrumented type.Copyright © 2014–2015. All rights reserved.