MethodEntryEvent (Java SE 21 & JDK 21)
Description: declaration: module: jdk.jdi, package: com.sun.jdi.event, interface: MethodEntryEvent
Keywords: com.sun.jdi.event.MethodEntryEvent interface

Module jdk.jdi
Package com.sun.jdi.event

# Interface MethodEntryEvent

All Superinterfaces:
  `Event`, `Locatable`, `LocatableEvent`, `Mirror`

public interface MethodEntryEvent extends LocatableEvent
Notification of a method invocation in the target VM. This event occurs after entry into the invoked method and before any code has executed. Method entry events are generated for both native and non-native methods.

In some VMs method entry events can occur for a particular thread before its `ThreadStartEvent` occurs if methods are called as part of the thread's initialization.

Since:
  1.3
See Also:
  - `EventQueue`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Method`
  `method()`
  Returns the method that was entered.

  ### Methods declared in interface com.sun.jdi.event.Event

  `request`

  ### Methods declared in interface com.sun.jdi.Locatable

  `location`

  ### Methods declared in interface com.sun.jdi.event.LocatableEvent

  `thread`

  ### Methods declared in interface com.sun.jdi.Mirror

  `toString, virtualMachine`

- ## Method Details

  - ### method

    Method method()
    Returns the method that was entered.
    Returns:
      a `Method` which mirrors the method that was entered.