FunctionKind ENUM

The kind of a function object.

In Julian, a function can be defined in different ways - as a global function, a class member method, a lambda, etc. When holding the function object, calling getFunctionKind() will return a value of this type.

All Members


TypeNameValue
constantGLOBAL0
constantINSTANCE_METHOD1
constantSTATIC_METHOD2
constantCONSTRUCTOR3
constantLAMBDA4
constantINSTANCE_METHOD_GROUP5
constantSTATIC_METHOD_GROUP6

Constants


public const FunctionKind GLOBAL = 0

A global function defined outside of any types.

public const FunctionKind INSTANCE_METHOD = 1

An instance member method.

public const FunctionKind STATIC_METHOD = 2

A static member method.

public const FunctionKind CONSTRUCTOR = 3

A constructor.

public const FunctionKind LAMBDA = 4

A lambda, without differentiating the containing function, which itself can be one of these kinds.

public const FunctionKind INSTANCE_METHOD_GROUP = 5

A group of instance member methods.

public const FunctionKind STATIC_METHOD_GROUP = 6

A group of static member methods. This also applies for extension method group.