protected static class Advice.Dispatcher.Inlining.CodeTranslationVisitor.ForMethodEnter extends Advice.Dispatcher.Inlining.CodeTranslationVisitor
Advice.Dispatcher.Inlining.CodeTranslationVisitor.ForMethodEnter, Advice.Dispatcher.Inlining.CodeTranslationVisitor.ForMethodExitadviceMethod, endOfMethod, instrumentedMethodapi, mv| Modifier | Constructor and Description | 
|---|---|
| protected  | ForMethodEnter(MethodVisitor methodVisitor,
              Advice.MethodSizeHandler.ForAdvice methodSizeHandler,
              Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler,
              MethodDescription.InDefinedShape instrumentedMethod,
              MethodDescription.InDefinedShape adviceMethod,
              Map<Integer,Advice.Dispatcher.OffsetMapping.Target> offsetMappings,
              Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler)Creates a code translation visitor for translating exit advice. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected int | adjust(int offset)Adjusts the offset of a variable instruction within the advice method such that no arguments to
 the instrumented method are overridden. | 
| void | storeDefaultValue(MethodVisitor methodVisitor)Stores a default return value for the advised method. | 
| String | toString() | 
| void | visitInsn(int opcode) | 
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFrame, visitIincInsn, visitMaxs, visitParameter, visitParameterAnnotation, visitTypeAnnotation, visitVarInsnvisitFieldInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeInsnprotected ForMethodEnter(MethodVisitor methodVisitor, Advice.MethodSizeHandler.ForAdvice methodSizeHandler, Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler, MethodDescription.InDefinedShape instrumentedMethod, MethodDescription.InDefinedShape adviceMethod, Map<Integer,Advice.Dispatcher.OffsetMapping.Target> offsetMappings, Advice.Dispatcher.SuppressionHandler.Bound suppressionHandler)
methodVisitor - A method visitor for writing the instrumented method's byte code.methodSizeHandler - A handler for computing the method size requirements.stackMapFrameHandler - A handler for translating and injecting stack map frames.instrumentedMethod - The instrumented method.adviceMethod - The advice method.offsetMappings - A mapping of offsets to resolved target offsets in the instrumented method.suppressionHandler - The suppression handler to use.public void visitInsn(int opcode)
visitInsn in class Advice.Dispatcher.Inlining.CodeTranslationVisitorprotected int adjust(int offset)
Advice.Dispatcher.Inlining.CodeTranslationVisitoradjust in class Advice.Dispatcher.Inlining.CodeTranslationVisitoroffset - The original offset.public void storeDefaultValue(MethodVisitor methodVisitor)
Advice.Dispatcher.SuppressionHandler.ReturnValueProducermethodVisitor - The instrumented method's method visitor.Copyright © 2014–2016. All rights reserved.