ReflectionService
Exposes class and member metadata.
- Service
game:GetService("ReflectionService")- Inherits
- Instance
- Replication
- Never
Behavior
ReflectionService exposes class and member metadata.
Summary
CanParent(child: Instance | string, parent: Instance | string): { Allowed: boolean, Reason: string? }parallel readReturns whether the proposed parent-child relationship is allowed.
Returns whether a class matches or derives from another class.
Returns the classes accepted as children of the specified class.
Returns reflection metadata for the named class.
Returns the registered engine classes.
Returns this instance if it is an ExecutionGroup.
Returns class-family information from the engine registry.
Returns the default container for the specified class.
Returns a member's parallel-access classification.
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): booleanReturns 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
Returns reflection metadata for the named class.
GetClasses
ReflectionService:GetClasses(filter: table?): tableReturns 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(): tableReturns class-family information from the engine registry.
GetHome
ReflectionService:GetHome(class: Instance | string): { string }Returns the default container for the specified class.
GetThreadSafety
Returns a member's parallel-access classification.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying