| 1 | package SPVM::Native::Field; | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | 1; | ||
| 6 | |||
| 7 | =head1 Name | ||
| 8 | |||
| 9 | SPVM::Native::Field - Information of Fields | ||
| 10 | |||
| 11 | =head1 Description | ||
| 12 | |||
| 13 | The Native::Field class of L<SPVM> has methods to manipulate information of fields. | ||
| 14 | |||
| 15 | =head1 Usage | ||
| 16 | |||
| 17 | use Native::Field; | ||
| 18 | |||
| 19 | =head1 Instance Methods | ||
| 20 | |||
| 21 | =head2 get_index | ||
| 22 | |||
| 23 | C<method get_index : int ();> | ||
| 24 | |||
| 25 | Gets the index. | ||
| 26 | |||
| 27 | If a memory error occurs, an exception is thrown. | ||
| 28 | |||
| 29 | =head2 get_name | ||
| 30 | |||
| 31 | C<method get_name : string ();> | ||
| 32 | |||
| 33 | Gets the name. | ||
| 34 | |||
| 35 | If a memory error occurs, an exception is thrown. | ||
| 36 | |||
| 37 | =head2 get_basic_type | ||
| 38 | |||
| 39 | C<method get_basic_type : L<Native::BasicType|SPVM::Native::BasicType> ();> | ||
| 40 | |||
| 41 | Gets L<Native::BasicType|SPVM::Native::BasicType> object. | ||
| 42 | |||
| 43 | If a memory error occurs, an exception is thrown. | ||
| 44 | |||
| 45 | =head2 get_type_dimension | ||
| 46 | |||
| 47 | C<method get_type_dimension : int ();> | ||
| 48 | |||
| 49 | Gets the type dimension. | ||
| 50 | |||
| 51 | If a memory error occurs, an exception is thrown. | ||
| 52 | |||
| 53 | =head2 get_type_flag | ||
| 54 | |||
| 55 | C<method get_type_flag : int ();> | ||
| 56 | |||
| 57 | Gets the type flag. | ||
| 58 | |||
| 59 | If a memory error occurs, an exception is thrown. | ||
| 60 | |||
| 61 | =head2 get_current_basic_type | ||
| 62 | |||
| 63 | C<method get_current_basic_type : L<Native::BasicType|SPVM::Native::BasicType> ();> | ||
| 64 | |||
| 65 | Gets the current L<Native::BasicType|SPVM::Native::BasicType> object that defines this field. | ||
| 66 | |||
| 67 | If a memory error occurs, an exception is thrown. | ||
| 68 | |||
| 69 | =head1 Copyright & License | ||
| 70 | |||
| 71 | Copyright (c) 2023 Yuki Kimoto | ||
| 72 | |||
| 73 | MIT License | ||
| 74 |