Manpage logo

SPVM::Native::Method - Information of Methods

Name  Description  Usage  Instance Methods  get_index  get_name  get_return_basic_type  get_return_type_dimension  get_return_type_flag  get_current_basic_type  get_arg_by_index  get_args_length  get_required_args_length  is_class_method  is_anon  is_native  is_precompile  is_enum  get_native_address  set_native_address  get_precompile_address  set_precompile_address  is_precompile_fallback  set_is_precompile_fallback  get_args_signature  Copyright & License 

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 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.

is_precompile_fallback

"method is_precompile_fallback : int ();"

Gets the "is_precompile_fallback".

set_is_precompile_fallback

"method set_is_precompile_fallback : void ($is_precompile_fallback : int);"

Sets the "is_precompile_fallback".

get_args_signature

"method get_args_signature : string ();"

Returns the arguments signature.

If a memory error occurs, an exception is thrown.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License


Updated 2026-06-01 - jenkler.se | uex.se