ReflectionService¶
A service that allows scripts to query the engine's API at runtime for information about classes, properties, methods, and events.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
Description¶
ReflectionService allows scripts to query the engine for details about its
API, including required security permissions, functionality, and inheritance
structure. You can use this service to dynamically inspect classes and their
properties, methods, and events, which can be useful for debugging, tooling,
or creating dynamic behaviors based on the engine's capabilities.
The following is an example script that inspects classes and their properties:
Inheritance¶
Object → Instance → ReflectionService
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetClass |
ReflectionService:GetClass(className: string, filter: Dictionary = nil): Dictionary? |
Returns information about a class when given its name, assuming that class is accessible. |
GetClasses |
ReflectionService:GetClasses(filter: Dictionary = nil): Array |
Returns a list of all classes accessible with filters applied. |
GetEventsOfClass |
ReflectionService:GetEventsOfClass(className: string, filter: Dictionary = nil): Array |
Returns a list of events for a given class with filters applied. |
GetMethodsOfClass |
ReflectionService:GetMethodsOfClass(className: string, filter: Dictionary = nil): Array |
Returns a list of methods for a given class with filters applied. |
GetPropertiesOfClass |
ReflectionService:GetPropertiesOfClass(className: string, filter: Dictionary = nil): Array |
Returns a list of properties for a given class with filters applied. |
GetPropertyNames |
ReflectionService:GetPropertyNames(name: string): Array |
— |
GetStyledPropertyNames |
ReflectionService:GetStyledPropertyNames(name: string): Array |
— |
Roblox reference: ReflectionService
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.