RuntimeAccess
loreline.RuntimeAccess (Enum)
Represents different ways to access runtime values in a Loreline script. This is used internally by the interpreter to resolve variable accesses, array accesses, character references, and function calls.
Constructors
FieldAccess
FieldAccess(pos: loreline.Position, obj: Any, name: String)
Parameters:
| Name | Type | Description |
|---|---|---|
pos |
loreline.Position | Position in the source code where this access occurs |
obj |
Any | The object being accessed |
name |
String | The name of the field to access |
Represents access to a field of an object.
ArrayAccess
ArrayAccess(pos: loreline.Position, array: Any, index: Int)
Parameters:
| Name | Type | Description |
|---|---|---|
pos |
loreline.Position | Position in the source code where this access occurs |
array |
Any | The array being accessed |
index |
Int | The index into the array |
Represents access to an array element by index.
CharacterAccess
CharacterAccess(pos: loreline.Position, name: String)
Parameters:
| Name | Type | Description |
|---|---|---|
pos |
loreline.Position | Position in the source code where this access occurs |
name |
String | The name of the character to access |
Represents access to a character by name.
FunctionAccess
FunctionAccess(pos: loreline.Position, name: String)
Parameters:
| Name | Type | Description |
|---|---|---|
pos |
loreline.Position | Position in the source code where this access occurs |
name |
String | The name of the function to access |
Represents access to a built-in or user-defined function.
Metadata
| Name | Parameters |
|---|---|
:hxGen |
- |