The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::Native::Runtime::Info - Information of A Runtime

Description

The Native::Runtime::Info class in SPVM has methods to get information of a runtime.

Usage

  use Native::Runtime::Info;
  
  my $runtime_info = Native::Runtime::Info->new($runtime);

Fields

runtime

has runtime : Native::Runtime;

The runtime.

Class Methods

static method new : Native::Runtime::Info ($runtime : Native::Runtime);

Instance Methods

get_basic_type_names

method get_basic_type_names : string[] ();

Gets all basic type names owned by the runtime, and return it.

get_class_names

method get_class_names : string[] ();

Gets all basic type names by defined class keyword owned by the runtime, and return it.

These contains the names of interface types and multi-numeric types.

get_method_names

method get_method_names : string[] ($class_name : string);

Gets all method names owned by the class given the class name $class_name.

Copyright & License

Copyright (c) 2024 Yuki Kimoto

MIT License