hasProperty

@Incubating
abstract fun hasProperty(name: String): Boolean(source)

Returns true if the object has a property named name.

Note that this method will only return true for realised Groovy properties and does not take into account implementation of Groovy's getProperty or propertyMissing.

Since

8.1