Method (Java SE 19 & JDK 19) (original) (raw)

All Superinterfaces:

[Accessible](Accessible.html "interface in com.sun.jdi"), [Comparable](../../../../java.base/java/lang/Comparable.html "interface in java.lang")<[Method](Method.html "interface in com.sun.jdi")>, [Locatable](Locatable.html "interface in com.sun.jdi"), [Mirror](Mirror.html "interface in com.sun.jdi"), [TypeComponent](TypeComponent.html "interface in com.sun.jdi")


A static or instance method in the target VM. See TypeComponent for general information about Field and Method mirrors.

Since:

1.3

See Also:

Returns a list containing a Location object for each executable source line in this method.
Returns a list containing a Location object for each executable source line in this method.
[arguments](#arguments%28%29)()
Returns a list containing each LocalVariable that is declared as an argument of this method.
Returns a list containing a text representation of the type of each formal parameter of this method.
Returns a list containing the type of each formal parameter of this method.
byte[]
[bytecodes](#bytecodes%28%29)()
Returns an array containing the bytecodes for this method.
boolean
Compares the specified Object with this method for equality.
int
[hashCode](#hashCode%28%29)()
Returns the hash code value for this Method.
boolean
Determine if this method is abstract.
boolean
[isBridge](#isBridge%28%29)()
Determine if this method is a bridge method.
boolean
Determine if this method is a constructor.
default boolean
[isDefault](#isDefault%28%29)()
Determine if this method is a default method
boolean
[isNative](#isNative%28%29)()
Determine if this method is native.
boolean
Determine if this method is obsolete.
boolean
Determine if this method is a static initializer.
boolean
Determine if this method is synchronized.
boolean
[isVarArgs](#isVarArgs%28%29)()
Determine if this method accepts a variable number of arguments.
[location](#location%28%29)()
Returns the Location of this method, if there is executable code associated with it.
[locationOfCodeIndex](#locationOfCodeIndex%28long%29)(long codeIndex)
Returns a Location for the given code index.
[locationsOfLine](#locationsOfLine%28int%29)(int lineNumber)
Returns a List containing all Location objects that map to the given line number.
Returns a List containing all Location objects that map to the given line number and source name.
Returns the return type, as specified in the declaration of this method.
Returns a text representation of the return type, as specified in the declaration of this method.
[variables](#variables%28%29)()
Returns a list containing each LocalVariable declared in this method.
Returns a list containing each LocalVariable of a given name in this method.