@Documented @Retention(value=RUNTIME) @Target(value=PARAMETER) public static @interface Advice.Thrown
Throwable
. If the instrumented method terminates regularly, null
is assigned to
the annotated parameter.Advice
,
Advice.OnMethodExit
Modifier and Type | Optional Element and Description |
---|---|
boolean |
readOnly
Indicates if it is possible to write to this parameter.
|
public abstract boolean readOnly
Indicates if it is possible to write to this parameter. If this property is set to false
, it is illegal to
write to the annotated parameter. If this property is set to true
, the annotated parameter can either be set
to null
to suppress an exception that was thrown by the adviced method or it can be set to any other exception
that will be thrown after the advice method returned.
If an exception is suppressed, the default value for the return type is returned from the method, i.e. 0
for any
numeric type and null
for a reference type. The default value can be replaced via the Advice.Return
annotation.
true
if this parameter is read-only.Copyright © 2014–2016. All rights reserved.