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);
Returns all method names owned by the class given the class name $class_name.
get_field_names
method get_field_names : string[] ($class_name : string);
Returnsall field names owned by the class given the class name $class_name.
get_class_var_names
method get_class_var_names : string[] ($class_name : string);
Returnsall class variable names owned by the class given the class name $class_name.
get_method
method get_method : Native::Method ($class_name : string, $method_name : string);
Gets a method given the class name $class_name and the method name $method_name, returns it.
get_field
method get_field : Native::Field ($class_name : string, $field_name : string);
Gets a field given the class name $class_name and the method name $method_name, returns it.
get_class_var
method get_class_var : Native::ClassVar ($class_name : string, $class_var_name : string);
Gets a class variable given the class name $class_name and the method name $method_name, returns it.
Copyright & License
Copyright (c) 2024 Yuki Kimoto
MIT License