Open Asterune
ReflectionService

ReflectionService

Exposes class and member metadata.

Service
game:GetService("ReflectionService")
Inherits
Instance
Replication
Never

Behavior

ReflectionService exposes class and member metadata.

Summary

Members9
Methods9

Methods

CanParent

ReflectionService:CanParent(child: Instance | string, parent: Instance | string): { Allowed: boolean, Reason: string? }

Returns whether the proposed parent-child relationship is allowed.

ClassIsA

ReflectionService:ClassIsA(class: Instance | string, ancestor: string): boolean

Returns whether a class matches or derives from another class.

GetAcceptedChildren

ReflectionService:GetAcceptedChildren(parent: Instance | string, filter: { [string]: any }?): { string }

Returns the classes accepted as children of the specified class.

GetClass

ReflectionService:GetClass(class: Instance | string): ClassInfo?

Returns reflection metadata for the named class.

GetClasses

ReflectionService:GetClasses(filter: table?): table

Returns the registered engine classes.

GetExecutionGroup

ReflectionService:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

GetFamilies

ReflectionService:GetFamilies(): table

Returns class-family information from the engine registry.

GetHome

ReflectionService:GetHome(class: Instance | string): { string }

Returns the default container for the specified class.

GetThreadSafety

ReflectionService:GetThreadSafety(class: Instance | string, member: string): EnumItem

Returns a member's parallel-access classification.

Inherited members

Inherited47

Instance