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
adviceMethod, offsetMappings
IGNORE_METHOD
Modifier | Constructor and Description |
---|---|
protected |
ForMethodEnter(MethodDescription.InDefinedShape adviceMethod)
Creates a new resolved dispatcher for implementing method enter advice.
|
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 advice or a description of
void if
no type is supplied as a result of the enter advice. |
String |
toString() |
apply, equals, hashCode, isAlive
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
apply
isAlive
protected ForMethodEnter(MethodDescription.InDefinedShape adviceMethod)
adviceMethod
- The represented advice method.public TypeDescription getEnterType()
Advice.Dispatcher.Resolved.ForMethodEnter
void
if
no type is supplied as a result of the enter advice.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.