Class Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter

java.lang.Object
net.bytebuddy.asm.Advice.ArgumentHandler.ForAdvice.Default
net.bytebuddy.asm.Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter
All Implemented Interfaces:
Advice.ArgumentHandler, Advice.ArgumentHandler.ForAdvice
Enclosing class:
Advice.ArgumentHandler.ForAdvice.Default

@Enhance protected static class Advice.ArgumentHandler.ForAdvice.Default.ForMethodEnter extends Advice.ArgumentHandler.ForAdvice.Default
An argument handler for an enter advice method.
  • Constructor Details

    • ForMethodEnter

      protected ForMethodEnter(MethodDescription instrumentedMethod, MethodDescription.TypeToken typeToken, TypeDefinition exitType, SortedMap<String,TypeDefinition> namedTypes)
      Creates a new argument handler for an enter advice method.
      Parameters:
      instrumentedMethod - The instrumented method.
      typeToken - The type token of the advice method.
      exitType - The exit type or void if no exit type is defined.
      namedTypes - A mapping of all available local variables by their name to their type.
  • Method Details

    • returned

      public int returned()
      Resolves the offset of the returned value of the instrumented method.
      Returns:
      The offset of the returned value of the instrumented method.
    • thrown

      public int thrown()
      Resolves the offset of the thrown exception of the instrumented method.
      Returns:
      The offset of the thrown exception of the instrumented method.
    • mapped

      public int mapped(int offset)
      Resolves an offset of the advice method.
      Parameters:
      offset - The offset to resolve.
      Returns:
      The resolved offset.