RosettaCodeData/Task/Reflection-List-methods/Ecstasy/reflection-list-methods.ecs...

15 lines
450 B
Plaintext

module test {
void run() {
@Inject Console console;
String[] names = &this.actualType.multimethods.keys.toArray();
console.print($"Method/function names on {this}: {names}");
Method[] methods = &this.actualType.methods;
console.print($"The methods of {this}: {methods}");
Function[] functions = &this.actualType.functions;
console.print($"The functions of {this}: {functions}");
}
}