Skip to content

[F] hasVisibility

function hasVisibility(
program,
property,
modifier): boolean

Determines if a property has a specified visibility modifier.

If no visibility modifiers have been set for the visibility class of the modifier, the visibility class’s default modifier set is used.

Parameters

ParameterTypeDescription
programProgramthe program in which the property occurs
propertyModelPropertythe property to check
modifierEnumMemberthe visibility modifier to check for

Returns

boolean

true if the property has the visibility modifier, false otherwise