MethodFinder

Deprecated

YukiHookAPI will completely remove the API of its own reflection part in version 2.0.0. We recommend that you use KavaRef to implement reflection for better performance and maintainability. See: https://github.com/HighCapable/KavaRef

Method finder.

Finds a specific Method or group of Method instances by type.

Parameters

classSet

the Class instance to search.

Types

Link copied to clipboard

Method finder result processor for hookerManager.

Link copied to clipboard
inner class RemedyPlan

Method remedy-plan implementation.

Link copied to clipboard

Method finder result implementation.

Properties

Link copied to clipboard

Sets the Method name.

Link copied to clipboard

Sets the Method parameter count.

Link copied to clipboard

Sets the Method return type.

Functions

Link copied to clipboard

Configures an empty, parameterless Method.

Link copied to clipboard
fun modifiers(conditions: ModifierConditions): BaseFinder.IndexTypeCondition

Sets the Method modifier conditions.

Link copied to clipboard
fun name(conditions: NameConditions): BaseFinder.IndexTypeCondition

Sets the Method name condition.

Sets the Method name.

Link copied to clipboard

Filters by the bytecode order index.

Link copied to clipboard
fun param(conditions: ObjectsConditions): BaseFinder.IndexTypeCondition

Sets the Method parameter conditions.

fun param(vararg paramType: Any): BaseFinder.IndexTypeCondition

Sets the Method parameters.

Link copied to clipboard
fun paramCount(conditions: CountConditions): BaseFinder.IndexTypeCondition

Sets the Method parameter-count condition.

Sets the Method parameter count.

Sets the Method parameter-count range.

Link copied to clipboard

Sets the Method return type.

fun returnType(conditions: ObjectConditions): BaseFinder.IndexTypeCondition

Sets the Method return-type condition.

Link copied to clipboard
fun superClass(isOnlySuperClass: Boolean = false)

Searches for the current Method in all superclasses of classSet.