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::Field - Information of Fields

Description

The Native::Field class of SPVM has methods to manipulate information of fields.

Usage

  use Native::Field;

Instance Methods

get_index

method get_index : int ();

Gets the index.

If a memory error occurs, an exception is thrown.

get_name

method get_name : string ();

Gets the name.

If a memory error occurs, an exception is thrown.

get_basic_type

method get_basic_type : Native::BasicType ();

Gets the Native::BasicType object.

If a memory error occurs, an exception is thrown.

get_type_dimension

method get_type_dimension : int ();

Gets the type dimension.

If a memory error occurs, an exception is thrown.

get_type_flag

method get_type_flag : int ();

Gets the type flag.

If a memory error occurs, an exception is thrown.

get_current_basic_type

method get_current_basic_type : Native::BasicType ();

Gets the current Native::BasicType object that defines this field.

If a memory error occurs, an exception is thrown.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License