protected static class Advice.Dispatcher.OffsetMapping.ForField.WithExplicitType extends Advice.Dispatcher.OffsetMapping.ForField
Advice.Dispatcher.OffsetMapping.ForField.Factory, Advice.Dispatcher.OffsetMapping.ForField.WithExplicitType, Advice.Dispatcher.OffsetMapping.ForField.WithImplicitType
Advice.Dispatcher.OffsetMapping.Context, Advice.Dispatcher.OffsetMapping.ForBoxedArguments, Advice.Dispatcher.OffsetMapping.ForBoxedReturnValue, Advice.Dispatcher.OffsetMapping.ForEnterValue, Advice.Dispatcher.OffsetMapping.ForField, Advice.Dispatcher.OffsetMapping.ForInstrumentedType, Advice.Dispatcher.OffsetMapping.ForOrigin, Advice.Dispatcher.OffsetMapping.ForParameter, Advice.Dispatcher.OffsetMapping.ForReturnValue, Advice.Dispatcher.OffsetMapping.ForStubValue, Advice.Dispatcher.OffsetMapping.ForThisReference, Advice.Dispatcher.OffsetMapping.ForThrowable, Advice.Dispatcher.OffsetMapping.ForUnusedValue, Advice.Dispatcher.OffsetMapping.ForUserValue<T extends Annotation>, Advice.Dispatcher.OffsetMapping.Illegal, Advice.Dispatcher.OffsetMapping.Target
name, readOnly, targetType
Modifier | Constructor and Description |
---|---|
protected |
WithExplicitType(String name,
TypeDescription targetType,
TypeDescription locatedType,
boolean readOnly)
Creates an offset mapping for a field with an explicit declaring type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
protected FieldLocator |
fieldLocator(TypeDescription instrumentedType)
Returns a field locator for this instance.
|
int |
hashCode() |
String |
toString() |
resolve
protected WithExplicitType(String name, TypeDescription targetType, TypeDescription locatedType, boolean readOnly)
name
- The name of the field.targetType
- The expected type that the field can be assigned to.locatedType
- The type declaring the field.readOnly
- true
if the field is read-only.protected FieldLocator fieldLocator(TypeDescription instrumentedType)
Advice.Dispatcher.OffsetMapping.ForField
fieldLocator
in class Advice.Dispatcher.OffsetMapping.ForField
instrumentedType
- The instrumented type.public boolean equals(Object object)
equals
in class Advice.Dispatcher.OffsetMapping.ForField
public int hashCode()
hashCode
in class Advice.Dispatcher.OffsetMapping.ForField
Copyright © 2014–2016. All rights reserved.