Modifiers Reference
Complete list of all modifiers available in SIMPLOO.
| Modifier | Description | See |
|---|---|---|
public |
Accessible from anywhere (default) | Access Control |
private |
Only accessible within the declaring class | Access Control |
protected |
Accessible within class and subclasses | Access Control |
static |
Shared across all instances | Statics |
const |
Cannot be modified after initialization | Members |
transient |
Excluded from serialization | Serialization |
meta |
Marks a method as a Lua metamethod | Metamethods |
default |
Interface method with default implementation | Interfaces |
Combining Modifiers
Modifiers can be combined by nesting:
Modifier Compatibility
| Combination | Valid | Notes |
|---|---|---|
private static |
Yes | Private class-level member |
public const |
Yes | Read-only public member |
static const |
Yes | Class-level constant |
private static const |
Yes | Private class-level constant |
static transient |
Yes | Not serialized, shared |
default (in interface) |
Yes | Only valid in interfaces |
private (in interface) |
No | Interfaces only allow public methods |
static (in interface) |
No | Interfaces cannot have static methods |