FieldFinder

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

Field finder.

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

Parameters

classSet

the Class instance to search.

Types

Link copied to clipboard
inner class RemedyPlan

Field remedy-plan implementation.

Link copied to clipboard

Field finder result implementation.

Properties

Link copied to clipboard

Sets the Field name.

Link copied to clipboard
var type: Any?

Sets the Field type.

Functions

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

Sets the Field modifier conditions.

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

Sets the Field name condition.

Sets the Field name.

Link copied to clipboard

Filters by the bytecode order index.

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

Searches for the current Field in all superclasses of classSet.

Link copied to clipboard

Sets the Field type.

fun type(conditions: ObjectConditions): BaseFinder.IndexTypeCondition

Sets the Field type condition.