abstract const class sys::Slot
Slot represents a member field or method on a Type.
Return the raw fandoc for this slot or null if not available.
Get a facet by its type. If not found on this slot then return null or throw UnknownFacetErr based on check flag. See Facets Doc for details.
Get the list of facets defined on this slot or return an empty list if no facets are defined. If looking up a facet by type, then use the
facetmethod which will provide better performance. See Facets Doc for details.
Find a Slot by it's qualified name "pod::Type.slot". If the slot doesn't exist and checked is false then return null, otherwise throw UnknownSlotErr.
Return if this type has the specified facet defined.
Return if slot is abstract (no implementation provided).
Return if slot is constant and thread safe. A constant field is explicitly marked with the const modifier and guaranteed to always reference the same immutable object for the life of the VM. A const method is guaranteed to not capture any state from its thread, and is safe to execute on other threads. The compiler marks methods as const based on the following analysis:
- static methods are always automatically const
- instance methods are never const
- closures which don't capture any variables from their scope are automatically const
- partional apply methods which only capture const variables from their scope are automatically const
Return if slot is constructor method.
Return true if this is an instance of Field.
Return if slot has internal protection scope.
Return true if this is an instance of Method.
Return if slot is native.
Return if slot is an override (of parent's virtual method).
Return if slot has private protection scope.
Return if slot has protected protection scope.
Return if slot has public protection scope.
Return if slot is static (class based, rather than instance).
Return if this slot was generated by the compiler.
Return if slot is virtual (may be overridden in subclasses).
Simple name of the slot such as "size".
Parent type which defines this slot.
Qualified name such as "sys:Str.size".
virtual Str signature()
Return a string representation of the Fantom code signature.
virtual override Str toStr()
Always return qname().