UsingFieldMatcher

Constructors

Link copied to clipboard
constructor()
constructor(field: Field, usingType: UsingType = UsingType.Any)
constructor(fieldDescriptor: String, usingType: UsingType = UsingType.Any)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The field declared class fully qualified name.

----------------

Link copied to clipboard

The field descriptor.

----------------

Link copied to clipboard
Link copied to clipboard

Field modifiers. Match using java.lang.reflect.Modifier mask bits, default match type is contains, if you need to match exactly, please use modifiers overloaded function.

Link copied to clipboard

The field name.

----------------

Link copied to clipboard

The field type fully qualified name.

----------------

Link copied to clipboard

Using type. Default is UsingType.Any.

Functions

Link copied to clipboard

Add field annotation matcher.

----------------

Link copied to clipboard

fun addReadMethods(methodDescriptor: String): UsingFieldMatcher

Read this field value's methods matcher.

----------------

Add read this field value's method matcher.

----------------

Link copied to clipboard

fun addWriteMethod(methodDescriptor: String): UsingFieldMatcher

Write this field value's methods matcher.

----------------

Add write this field value's method matcher.

----------------

Link copied to clipboard

Field annotation count.

----------------

fun annotationCount(min: Int = 0, max: Int = Int.MAX_VALUE): UsingFieldMatcher

Field annotation count range.

----------------

Link copied to clipboard

The field annotations matcher.

----------------

Link copied to clipboard

The field declared class matcher.

----------------


fun declaredClass(className: String, matchType: StringMatchType = StringMatchType.Equals, ignoreCase: Boolean = false): UsingFieldMatcher

The field declared class name matcher.

----------------

Link copied to clipboard

The field descriptor, specifies a unique field.

----------------

Link copied to clipboard
inline fun field(init: FieldMatcher.() -> Unit): UsingFieldMatcher

Need to match field.

----------------

Link copied to clipboard

Field modifiers matcher.

----------------

fun modifiers(modifiers: Int, matchType: MatchType = MatchType.Contains): UsingFieldMatcher

Field modifiers. Match using java.lang.reflect.Modifier mask bits.

----------------

Link copied to clipboard

The field name string matcher

----------------

fun name(name: String, matchType: StringMatchType = StringMatchType.Equals, ignoreCase: Boolean = false): UsingFieldMatcher

The field name.

----------------

Link copied to clipboard

Read this field value's methods matcher.

----------------

Link copied to clipboard
fun type(clazz: Class<*>): UsingFieldMatcher

The field type class matcher.

----------------

inline fun type(init: ClassMatcher.() -> Unit): UsingFieldMatcher

The field type matcher.

----------------

fun type(typeName: String, matchType: StringMatchType = StringMatchType.Equals, ignoreCase: Boolean = false): UsingFieldMatcher

The field type name matcher.

----------------

Link copied to clipboard

Using type.

----------------

Link copied to clipboard

Write this field value's methods matcher.

----------------