SPVM::Native::Method − Information of Methods
The Native::Method class of SPVM has methods to manipulate information of methods.
use Native::Method;
"method get_index : int ();"
Returns the index.
If a memory error occurs, an exception is thrown.
"method get_name : string ();"
Returns the name.
If a memory error occurs, an exception is thrown.
"method get_return_basic_type : Native::BasicType ();"
Returns Native::BasicType object of the return value.
If a memory error occurs, an exception is thrown.
"method get_return_type_dimension : int ();"
Returns the type dimension of the return value.
If a memory error occurs, an exception is thrown.
"method get_return_type_flag : int ();"
Returns the type flag of the return value.
If a memory error occurs, an exception is thrown.
"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.
"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.
"method get_args_length : int ();"
Returns the length of the arguments.
If a memory error occurs, an exception is thrown.
"method get_required_args_length : int ();"
Returns the length of the required arguments.
If a memory error occurs, an exception is thrown.
"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.
"method is_anon : int ();"
If the method is anon method, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
"method is_native : int ();"
If the method is native method, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
"method is_precompile : int ();"
If the method is precompiled method, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
"method is_enum : int ();"
If the method is enumeration, returns 1. Otherwise returns 0.
If a memory error occurs, an exception is thrown.
"method get_native_address : Address ();"
Gets the native address.
If a memory error occurs, an exception is thrown.
"method set_native_address : void ($address : Address);"
Sets the native address.
If a memory error occurs, an exception is thrown.
"method get_precompile_address : Address ();"
Gets the precompiled address.
If a memory error occurs, an exception is thrown.
"method set_precompile_address : void ($address : Address);"
Sets the precompiled address.
If a memory error occurs, an exception is thrown.
"method is_precompile_fallback : int ();"
Gets the "is_precompile_fallback".
"method set_is_precompile_fallback : void ($is_precompile_fallback : int);"
Sets the "is_precompile_fallback".
"method get_args_signature : string ();"
Returns the arguments signature.
If a memory error occurs, an exception is thrown.
Copyright (c) 2023 Yuki Kimoto
MIT License