Skip to content

[F] isReadonlyProperty

function isReadonlyProperty(program, property): boolean

Determines if a property is read-only, which is defined as having the only the Lifecycle.Read modifier.

If there is more than one Lifecycle visibility modifier active on the property, then the property is not read-only. For example, @visibility(Lifecycle.Read, Lifecycle.Update) does not designate a read-only property.

Parameters

ParameterType
programProgram
propertyModelProperty

Returns

boolean