Enumeration
enum ModifierInfo
public enum ModifierInfo <: Equatable<ModifierInfo> & Hashable & ToString {
| Open
| Override
| Redef
| Abstract
| Sealed
| Mut
| Static
}
Modifier information
Note:
Since the type information obtained by the developer through the reflection functionality comes from public types, these types inherently have
public
access control semantics. Therefore, the modifier information does not include any modifiers related to access control.
Parent Type:
Abstract
Abstract
Description: Specifies the abstract modifier.
Mut
Mut
Description: Specifies the mut modifier.
Open
Open
Description: Specifies the open modifier.
Override
Override
Description: Specifies the override modifier.
Redef
Redef
Description: Specifies the redef modifier.
Sealed
Sealed
Description: Specifies the sealed modifier.
Static
Static
Description: Specifies the static modifier.
func hashCode()
public func hashCode(): Int64
Description: Obtains the hash value of the modifier information.
Returns:
- Int64: hash value of the modifier information
Note:
The internal implementation is the hash value of the modifier keyword string.
func toString()
public func toString(): String
Description: Obtains the modifier information in the string format.
Returns:
- String: modifier information in the string format
Note:
The modifier information in the string format is the identifier of the modifier keyword.
operator func ==(ModifierInfo)
public operator func ==(that: ModifierInfo): Bool
Description: Checks whether the modifier information is equal to the given modifier information.
Parameters:
- that: ModifierInfo: information about another modifier under equality comparison
Returns:
- Bool: If the modifier information is equal to
that
,true
is returned. Otherwise,false
is returned.
Note:
The semantics of equality of modifier information is equivalent to the semantics of equality of
enum
type instances.
operator func !=(ModifierInfo)
public operator func !=(that: ModifierInfo): Bool
Description: Checks whether the modifier information is not equal to the given modifier information.
Note:
The semantics of equality of modifier information is equivalent to the semantics of equality of
enum
type instances.
Parameters:
- that: ModifierInfo: information about another modifier whose equality is compared
Returns:
- Bool: If the modifier information is not equal to
that
,true
is returned. Otherwise,false
is returned.