Name
SPVM::Native::Method - Information of Methods
Description
The Native::Method class of SPVM has methods to manipulate information of methods.
Usage
use Native::Method;
Instance Methods
get_index
method get_index : int ();
Returns the index.
If a memory error occurs, an exception is thrown.
get_name
method get_name : string ();
Returns the name.
If a memory error occurs, an exception is thrown.
get_return_basic_type
method get_return_basic_type : Native::BasicType ();
Returns the Native::BasicType object of the return value.
If a memory error occurs, an exception is thrown.
get_return_type_dimension
method get_return_type_dimension : int ();
Returns the type dimension of the return value.
If a memory error occurs, an exception is thrown.
get_return_type_flag
method get_return_type_flag : int ();
Returns the type flag of the return value.
If a memory error occurs, an exception is thrown.
get_current_basic_type
method get_current_basic_type : Native::BasicType ();
Returns the current Native::BasicType object that defines this method.
If a memory error occurs, an exception is thrown.
get_arg_by_index
method get_arg_by_index : Native::Arg ($arg_index : int);
Gets a arg object by an index, and returns it.
If a memory error occurs, an exception is thrown.
get_args_length
method get_args_length : int ();
Returns the length of the arguments.
If a memory error occurs, an exception is thrown.
get_required_args_length
method get_required_args_length : int ();
Returns the length of the required arguments.
If a memory error occurs, an exception is thrown.
is_class_method
method is_class_method : int ();
If the method is class method, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
is_anon
method is_anon : int ();
If the method is anon method, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
is_native
method is_native : int ();
If the method is native method, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
is_precompile
method is_precompile : int ();
If the method is precompiled method, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
is_enum
method is_enum : int ();
If the method is enumeration, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
get_native_address
method get_native_address : Address ();
Gets the native address.
If a memory error occurs, an exception is thrown.
set_native_address
method set_native_address : void ($address : Address);
Sets the native address.
If a memory error occurs, an exception is thrown.
get_precompile_address
method get_precompile_address : Address ();
Gets the precompiled address.
If a memory error occurs, an exception is thrown.
set_precompile_address
method set_precompile_address : void ($address : Address);
Sets the precompiled address.
If a memory error occurs, an exception is thrown.
Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License