inClassScope :boolean
function Util.inClassScope(class: internalClass, objectData: objectData, overloadedFunctions: {(...any) -> (...any?)}, includeInherited: boolean, includeFriend: boolean, classes: {[string]: internalClass}?, defaultLevel: number?): boolean
This function checks if the current thread is allowed to access a specific class property from a certain access specifier.
Default syntax
local isAllowed = Util.inClassScope(class, objectData, overloadedFunctions, false, true, classes) -- For the Private access specifier
Parameters
class: class
The
class that the check will be made from.
objectData: object
The
objectData table that the check will be made with. A classData table can also be used.
overloadedFunctions: {(...any) -> (...any?)}
A table that contains overloaded functions. This table is necessary for the overloaded functions of the class to access private members.
includeInherited: boolean
Determines if the inherited
classes can access.
includeFriend: boolean
Determines if the friend
classes can access.
classes: {[string]: class}
A table that contains classes. If
includeFriend is set to true, this table will be given to the Util.checkFriendship function.
defaultLevel: number
Determines the default call stack level the function will start doing the checks on.
Returns