public static class MethodDelegation.ImplementationDelegate.ForConstruction extends Object implements MethodDelegation.ImplementationDelegate
MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForField, MethodDelegation.ImplementationDelegate.ForInstance, MethodDelegation.ImplementationDelegate.ForStaticMethod, MethodDelegation.ImplementationDelegate.Resolution
FIELD_NAME_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
ForConstruction(TypeDescription typeDescription,
MethodList<?> candidates)
Creates an implementation delegate for invoking a constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
MethodDelegation.ImplementationDelegate |
filter(ElementMatcher<? super MethodDescription> matcher)
Filters all methods that do not fit the supplied matcher from delegation.
|
int |
hashCode() |
protected static MethodDelegation.ImplementationDelegate |
of(TypeDescription typeDescription)
Creates an implementation delegate for the constructors of a type.
|
InstrumentedType |
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.
|
MethodDelegation.ImplementationDelegate.Resolution |
resolve(TypeDescription instrumentedType)
Resolves this implementation delegate.
|
String |
toString() |
protected ForConstruction(TypeDescription typeDescription, MethodList<?> candidates)
typeDescription
- The type that declares the constructors.candidates
- The remaining candidate constructors.protected static MethodDelegation.ImplementationDelegate of(TypeDescription typeDescription)
typeDescription
- The type for which to resolve the constructors.public InstrumentedType prepare(InstrumentedType instrumentedType)
InstrumentedType.Prepareable
prepare
in interface InstrumentedType.Prepareable
instrumentedType
- The instrumented type in its current form.public MethodDelegation.ImplementationDelegate filter(ElementMatcher<? super MethodDescription> matcher)
MethodDelegation.ImplementationDelegate
filter
in interface MethodDelegation.ImplementationDelegate
matcher
- The matcher to apply.public MethodDelegation.ImplementationDelegate.Resolution resolve(TypeDescription instrumentedType)
MethodDelegation.ImplementationDelegate
resolve
in interface MethodDelegation.ImplementationDelegate
instrumentedType
- The instrumented type.Copyright © 2014–2016. All rights reserved.