Class FlagAttribute
A collection of constants and methods that relate to simple flag attributes.
Inheritance
Inherited Members
Namespace: Flame.TypeSystem
Assembly: Flame.dll
Syntax
public static class FlagAttribute
Fields
| Improve this Doc View SourceAbstract
An attribute that identifies a type or method as abstract.
Declaration
public static readonly IntrinsicAttribute Abstract
Field Value
| Type | Description |
|---|---|
| IntrinsicAttribute | An intrinsic attribute. |
InterfaceType
An attribute that identifies a type as an interface.
Declaration
public static readonly IntrinsicAttribute InterfaceType
Field Value
| Type | Description |
|---|---|
| IntrinsicAttribute | An intrinsic attribute. |
InternalCall
An attribute that identifies a method as being implemented by an "internal call" to the runtime. That is, if the runtime is responsible for implementing the method.
Declaration
public static readonly IntrinsicAttribute InternalCall
Field Value
| Type | Description |
|---|---|
| IntrinsicAttribute | An intrinsic attribute. |
ReferenceType
An attribute that identifies types as reference types.
Declaration
public static readonly IntrinsicAttribute ReferenceType
Field Value
| Type | Description |
|---|---|
| IntrinsicAttribute | An intrinsic attribute. |
SpecialType
An attribute that identifies a type as special, i.e., it is a "regular" type that contains more information than its fields alone.
Declaration
public static readonly IntrinsicAttribute SpecialType
Field Value
| Type | Description |
|---|---|
| IntrinsicAttribute | An intrinsic attribute. |
Virtual
An attribute that identifies a type or method as virtual, that is, eligible for inheritance and overriding, respectively.
Declaration
public static readonly IntrinsicAttribute Virtual
Field Value
| Type | Description |
|---|---|
| IntrinsicAttribute | An intrinsic attribute. |
Methods
| Improve this Doc View SourceIsAbstract(IMethod)
Tests if a particular method is abstract.
Declaration
public static bool IsAbstract(this IMethod method)
Parameters
| Type | Name | Description |
|---|---|---|
| IMethod | method | The method to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsAbstract(IType)
Tests if a particular type is abstract.
Declaration
public static bool IsAbstract(this IType type)
Parameters
| Type | Name | Description |
|---|---|---|
| IType | type | The type to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsInterfaceType(IType)
Tests if a particular type is definitely an interface type.
Declaration
public static bool IsInterfaceType(this IType type)
Parameters
| Type | Name | Description |
|---|---|---|
| IType | type | The type to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsInternalCall(IMethod)
Tests if a particular method is implemented by an "internal call" to the runtime. That is, if the runtime is responsible for implementing the method.
Declaration
public static bool IsInternalCall(this IMethod method)
Parameters
| Type | Name | Description |
|---|---|---|
| IMethod | method | The method to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsReferenceType(IType)
Tests if a particular type is definitely a reference type.
Declaration
public static bool IsReferenceType(this IType type)
Parameters
| Type | Name | Description |
|---|---|---|
| IType | type | The type to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsSpecialType(IType)
Tests if a particular type is definitely a special type.
Declaration
public static bool IsSpecialType(this IType type)
Parameters
| Type | Name | Description |
|---|---|---|
| IType | type | The type to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsVirtual(IMethod)
Tests if a particular method is virtual.
Declaration
public static bool IsVirtual(this IMethod method)
Parameters
| Type | Name | Description |
|---|---|---|
| IMethod | method | The method to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsVirtual(IType)
Tests if a particular type is virtual.
Declaration
public static bool IsVirtual(this IType type)
Parameters
| Type | Name | Description |
|---|---|---|
| IType | type | The type to test. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|