protected static class Advice.Dispatcher.OffsetMapping.ForThrowable.Factory extends Object implements Advice.Dispatcher.OffsetMapping.Factory
UNDEFINED| Modifier | Constructor and Description |
|---|---|
protected |
Factory(TypeDescription triggeringThrowable,
boolean readOnly)
Creates a new factory for access of the exception that is thrown by the instrumented method..
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
int |
hashCode() |
Advice.Dispatcher.OffsetMapping |
make(ParameterDescription.InDefinedShape parameterDescription)
Creates a new offset mapping for the supplied parameter if possible.
|
protected static Advice.Dispatcher.OffsetMapping.Factory |
of(MethodDescription.InDefinedShape adviceMethod,
boolean readOnly)
Resolves an appropriate offset mapping factory for the
Advice.Thrown parameter annotation. |
String |
toString() |
protected Factory(TypeDescription triggeringThrowable, boolean readOnly)
triggeringThrowable - The type of the Throwable being catched if thrown from the instrumented method.readOnly - true if the parameter is read-only.protected static Advice.Dispatcher.OffsetMapping.Factory of(MethodDescription.InDefinedShape adviceMethod, boolean readOnly)
Advice.Thrown parameter annotation.adviceMethod - The exit advice method, annotated with Advice.OnMethodExit.readOnly - true if the parameter is read-only.public Advice.Dispatcher.OffsetMapping make(ParameterDescription.InDefinedShape parameterDescription)
Advice.Dispatcher.OffsetMapping.Factorymake in interface Advice.Dispatcher.OffsetMapping.FactoryparameterDescription - The parameter description for which to resolve an offset mapping.null if no mapping can be resolved for this parameter.Copyright © 2014–2016. All rights reserved.