protected static class Advice.Dispatcher.Active.Resolved.ForMethodEnter extends Advice.Dispatcher.Active.Resolved implements Advice.Dispatcher.Resolved.ForMethodEnter
Advice.Dispatcher.Active.Resolved.ForMethodEnter, Advice.Dispatcher.Active.Resolved.ForMethodExit
Advice.Dispatcher.Resolved.ForMethodEnter, Advice.Dispatcher.Resolved.ForMethodExit
Advice.Dispatcher.Active, Advice.Dispatcher.Inactive, Advice.Dispatcher.Resolved, Advice.Dispatcher.Unresolved
adviseMethod, offsetMappings
IGNORE_METHOD
Modifier | Constructor and Description |
---|---|
protected |
ForMethodEnter(MethodDescription.InDefinedShape adviseMethod)
Creates a new resolved dispatcher for implementing method enter advise.
|
Modifier and Type | Method and Description |
---|---|
protected MethodVisitor |
apply(MethodVisitor methodVisitor,
Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler,
MethodDescription.InDefinedShape instrumentedMethod)
Applies a resolution for a given instrumented method.
|
TypeDescription |
getEnterType()
Returns the type that this dispatcher supplies as a result of its advise or a description of
void if
no type is supplied as a result of the enter advise. |
boolean |
isAlive()
Returns
true if this dispatcher is alive. |
String |
toString() |
apply, equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
apply
protected ForMethodEnter(MethodDescription.InDefinedShape adviseMethod)
adviseMethod
- The represented advise method.public boolean isAlive()
Advice.Dispatcher
true
if this dispatcher is alive.isAlive
in interface Advice.Dispatcher
true
if this dispatcher is alive.public TypeDescription getEnterType()
Advice.Dispatcher.Resolved.ForMethodEnter
void
if
no type is supplied as a result of the enter advise.getEnterType
in interface Advice.Dispatcher.Resolved.ForMethodEnter
void
.protected MethodVisitor apply(MethodVisitor methodVisitor, Advice.MetaDataHandler.ForInstrumentedMethod metaDataHandler, MethodDescription.InDefinedShape instrumentedMethod)
Advice.Dispatcher.Active.Resolved
apply
in class Advice.Dispatcher.Active.Resolved
methodVisitor
- A method visitor for writing byte code to the instrumented method.metaDataHandler
- A handler for translating meta data that is embedded into the instrumented method's byte code.instrumentedMethod
- A description of the instrumented method.Copyright © 2014–2016. All rights reserved.