@HashCodeAndEqualsPlugin.Enhance public static class Advice.OffsetMapping.ForArgument.Unresolved extends Advice.OffsetMapping.ForArgument
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Advice.OffsetMapping.ForArgument.Unresolved.Factory
A factory for a mapping of a parameter of the instrumented method.
|
Advice.OffsetMapping.ForArgument.Resolved, Advice.OffsetMapping.ForArgument.UnresolvedAdvice.OffsetMapping.ForAllArguments, Advice.OffsetMapping.ForArgument, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForExitValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForInstrumentedMethod, Advice.OffsetMapping.ForInstrumentedType, Advice.OffsetMapping.ForLocalValue, Advice.OffsetMapping.ForOrigin, Advice.OffsetMapping.ForReturnValue, Advice.OffsetMapping.ForSerializedValue, Advice.OffsetMapping.ForStackManipulation, Advice.OffsetMapping.ForStubValue, Advice.OffsetMapping.ForThisReference, Advice.OffsetMapping.ForThrowable, Advice.OffsetMapping.ForUnusedValue, Advice.OffsetMapping.Sort, Advice.OffsetMapping.TargetreadOnly, target| Modifier | Constructor and Description |
|---|---|
protected |
Unresolved(ParameterDescription parameterDescription)
Creates a new offset binding for a parameter with a given index.
|
protected |
Unresolved(TypeDescription.Generic target,
Advice.Argument argument)
Creates a new offset binding for a parameter with a given index.
|
|
Unresolved(TypeDescription.Generic target,
boolean readOnly,
Assigner.Typing typing,
int index)
Creates a non-optional offset binding for a parameter with a given index.
|
|
Unresolved(TypeDescription.Generic target,
boolean readOnly,
Assigner.Typing typing,
int index,
boolean optional)
Creates a new offset binding for a parameter with a given index.
|
| Modifier and Type | Method and Description |
|---|---|
protected ParameterDescription |
resolve(MethodDescription instrumentedMethod)
Resolves the bound parameter.
|
Advice.OffsetMapping.Target |
resolve(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
Assigner assigner,
Advice.ArgumentHandler argumentHandler,
Advice.OffsetMapping.Sort sort)
Resolves an offset mapping to a given target offset.
|
protected Unresolved(TypeDescription.Generic target, Advice.Argument argument)
target - The target type.argument - The annotation that triggers this binding.protected Unresolved(ParameterDescription parameterDescription)
parameterDescription - The parameter triggering this binding.public Unresolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, int index)
target - The type expected by the advice method.readOnly - Determines if the parameter is to be treated as read-only.typing - The typing to apply.index - The index of the parameter.public Unresolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, int index, boolean optional)
target - The type expected by the advice method.readOnly - Determines if the parameter is to be treated as read-only.typing - The typing to apply.index - The index of the parameter.optional - true if the parameter binding is optional.protected ParameterDescription resolve(MethodDescription instrumentedMethod)
Advice.OffsetMapping.ForArgumentresolve in class Advice.OffsetMapping.ForArgumentinstrumentedMethod - The instrumented method.public Advice.OffsetMapping.Target resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Assigner assigner, Advice.ArgumentHandler argumentHandler, Advice.OffsetMapping.Sort sort)
resolve in interface Advice.OffsetMappingresolve in class Advice.OffsetMapping.ForArgumentinstrumentedType - The instrumented type.instrumentedMethod - The instrumented method for which the mapping is to be resolved.assigner - The assigner to use.argumentHandler - The argument handler to use for resolving offsets of the local variable array of the instrumented method.sort - The sort of the advice method being resolved.Copyright © 2014–2019. All rights reserved.