@HashCodeAndEqualsPlugin.Enhance public abstract static class MethodDelegation.ImplementationDelegate.ForField extends Object implements MethodDelegation.ImplementationDelegate
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | MethodDelegation.ImplementationDelegate.ForField.WithInstanceAn implementation target for a static field that is declared by the instrumented type and that is assigned an instance. | 
| protected static class  | MethodDelegation.ImplementationDelegate.ForField.WithLookupAn implementation target for a field that is declared by the instrumented type or a super type. | 
MethodDelegation.ImplementationDelegate.Compiled, MethodDelegation.ImplementationDelegate.ForConstruction, MethodDelegation.ImplementationDelegate.ForField, MethodDelegation.ImplementationDelegate.ForMethodReturn, MethodDelegation.ImplementationDelegate.ForStaticMethodInstrumentedType.Prepareable.NoOp| Modifier and Type | Field and Description | 
|---|---|
| protected String | fieldNameThe name of the field that is target of the delegation. | 
| protected ElementMatcher<? super MethodDescription> | matcherThe matcher to use for filtering methods. | 
| protected MethodGraph.Compiler | methodGraphCompilerThe method graph compiler to use. | 
| protected List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> | parameterBindersThe parameter binders to use. | 
FIELD_NAME_PREFIX| Modifier | Constructor and Description | 
|---|---|
| protected  | ForField(String fieldName,
        MethodGraph.Compiler methodGraphCompiler,
        List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders,
        ElementMatcher<? super MethodDescription> matcher)Creates a new implementation delegate for a field delegation. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodDelegation.ImplementationDelegate.Compiled | compile(TypeDescription instrumentedType)Compiles this implementation delegate. | 
| protected abstract FieldDescription | resolve(TypeDescription instrumentedType)Resolves the field to which is delegated. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepareprotected final String fieldName
protected final MethodGraph.Compiler methodGraphCompiler
protected final List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders
protected final ElementMatcher<? super MethodDescription> matcher
protected ForField(String fieldName, MethodGraph.Compiler methodGraphCompiler, List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders, ElementMatcher<? super MethodDescription> matcher)
fieldName - The name of the field that is target of the delegation.methodGraphCompiler - The method graph compiler to use.parameterBinders - The parameter binders to use.matcher - The matcher to use for filtering methods.public MethodDelegation.ImplementationDelegate.Compiled compile(TypeDescription instrumentedType)
compile in interface MethodDelegation.ImplementationDelegateinstrumentedType - The instrumented type.protected abstract FieldDescription resolve(TypeDescription instrumentedType)
instrumentedType - The instrumented type.Copyright © 2014–2024. All rights reserved.