InstanceFieldPattern

data class InstanceFieldPattern(className: String, fieldName: String) : ReferencePattern

Matches instances field references, identified by className and fieldName.

Note: If fieldName is declared in a superclass it will still match for subclasses. This is to support overriding of rules for specific cases. If two ReferenceMatcher match for the same fieldName but for different className in a class hierarchy, then the closest class in the hierarchy wins.

Constructors

InstanceFieldPattern
Link copied to clipboard
fun InstanceFieldPattern(className: String, fieldName: String)

Types

Companion
Link copied to clipboard
object Companion

Functions

toString
Link copied to clipboard
open override fun toString(): String

Properties

className
Link copied to clipboard
val className: String
fieldName
Link copied to clipboard
val fieldName: String