Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.05 KB

File metadata and controls

32 lines (24 loc) · 1.05 KB

API reference

reflect::Type

Method Description
string GetName() Type name.
array<Property@>@ GetProperties() All properties of the type.
array<Method@>@ GetMethods() All methods of the type.
Method@ GetMethod(string signature) Look up a method by full signature declaration.

reflect::Property

Method Description
string GetName() Property name.
Type@ GetType() Declared type of the property.
Value@ GetValue(const ?&in instance) A Value bound to this property on the given instance.

reflect::Value

Method Description
T Get<T>() Read the value. Copies for value/primitive, aliases for handles (Get<T@>).
void Set(?&in value) Write the value. No-op on type mismatch.
bool Is<T>() Exact type check.

reflect::Method

Method Description
Value@ Invoke(const ?&in instance, ...) Invoke with arguments. Returns the result, void-typed Value for void methods, or null on failure.