Reflect

The reflect module exposes metadata about types, fields, and annotations.

Annotations

Name

annotation Name
                    

No documentation.

Fields:

  • @String name

Data

Annotation

data Annotation
                    

No documentation.

Fields:

  • @AnyAnnotation annotationType
  • @Array args

Field

data Field
                    

No documentation.

Fields:

  • @String name
  • @Type(AnyType) type
  • @Array @ItemType(Annotation) annotations

Functions

annotation

@Returns(Result)
@OkType(AnyAnnotation)
func annotation(@Field field, @AnnotationType annotationType)
                    

No documentation.

fieldsOf

@Returns(Array(Field))
func fieldsOf(@Type type)
                    

No documentation.

hasAnnotation

@Returns(Bool)
func hasAnnotation(@Field field, @AnnotationType annotationType)
                    

No documentation.

typeOf

@Returns(Type)
func typeOf(@Any value)
                    

No documentation.