| 1 | package SPVM::Native::ClassFile; | ||
| 2 | |||
| 3 | |||
| 4 | |||
| 5 | 1; | ||
| 6 | |||
| 7 | =head1 Name | ||
| 8 | |||
| 9 | SPVM::Native::ClassFile - Information of Class Files | ||
| 10 | |||
| 11 | =head1 Description | ||
| 12 | |||
| 13 | The Native::ClassFile class of L<SPVM> has methods to manipulate information of class files | ||
| 14 | |||
| 15 | =head1 Usage | ||
| 16 | |||
| 17 | use Native::ClassFile; | ||
| 18 | |||
| 19 | =head1 Instance Methods | ||
| 20 | |||
| 21 | =head2 get_class_name | ||
| 22 | |||
| 23 | C<method get_class_name : string ();> | ||
| 24 | |||
| 25 | Returns the class name. | ||
| 26 | |||
| 27 | If a memory error occurs, an exception is thrown. | ||
| 28 | |||
| 29 | =head2 get_file | ||
| 30 | |||
| 31 | C<method get_file : string ();> | ||
| 32 | |||
| 33 | Returns the file. | ||
| 34 | |||
| 35 | If a memory error occurs, an exception is thrown. | ||
| 36 | |||
| 37 | =head2 set_file | ||
| 38 | |||
| 39 | C<method set_file : void ($file : string);> | ||
| 40 | |||
| 41 | Sets the file. | ||
| 42 | |||
| 43 | If a memory error occurs, an exception is thrown. | ||
| 44 | |||
| 45 | =head2 get_dir | ||
| 46 | |||
| 47 | C<method get_dir : string ();> | ||
| 48 | |||
| 49 | Returns the directory. | ||
| 50 | |||
| 51 | If a memory error occurs, an exception is thrown. | ||
| 52 | |||
| 53 | =head2 set_dir | ||
| 54 | |||
| 55 | C<method set_dir : void ($dir : string);> | ||
| 56 | |||
| 57 | Sets the directory. | ||
| 58 | |||
| 59 | If a memory error occurs, an exception is thrown. | ||
| 60 | |||
| 61 | =head2 get_rel_file | ||
| 62 | |||
| 63 | C<method get_rel_file : string ();> | ||
| 64 | |||
| 65 | Returns the relative file. | ||
| 66 | |||
| 67 | If a memory error occurs, an exception is thrown. | ||
| 68 | |||
| 69 | =head2 set_rel_file | ||
| 70 | |||
| 71 | C<method set_rel_file : void ($rel_file : string);> | ||
| 72 | |||
| 73 | Ss the relative file. | ||
| 74 | |||
| 75 | If a memory error occurs, an exception is thrown. | ||
| 76 | |||
| 77 | =head2 get_content | ||
| 78 | |||
| 79 | C<method get_content : string ();> | ||
| 80 | |||
| 81 | Returns the content. | ||
| 82 | |||
| 83 | If a memory error occurs, an exception is thrown. | ||
| 84 | |||
| 85 | =head2 set_content | ||
| 86 | |||
| 87 | C<method set_content : void ($content : string);> | ||
| 88 | |||
| 89 | Sets the content. | ||
| 90 | |||
| 91 | If a memory error occurs, an exception is thrown. | ||
| 92 | |||
| 93 | =head2 get_content_length | ||
| 94 | |||
| 95 | C<method get_content_length : int ();> | ||
| 96 | |||
| 97 | Returns the length of the content. | ||
| 98 | |||
| 99 | If a memory error occurs, an exception is thrown. | ||
| 100 | |||
| 101 | =head2 set_content_length | ||
| 102 | |||
| 103 | C<method set_content_length : void ($content_length : int);> | ||
| 104 | |||
| 105 | Sets the length of the content. | ||
| 106 | |||
| 107 | If a memory error occurs, an exception is thrown. | ||
| 108 | |||
| 109 | =head1 Copyright & License | ||
| 110 | |||
| 111 | Copyright (c) 2023 Yuki Kimoto | ||
| 112 | |||
| 113 | MIT License | ||
| 114 |