SPVM::N...lassFile(3)
π
SPVM::N...lassFile(3) β aka the Native::ClassFile page, bestie
okay so welcome to SPVM::N...lassFile(3), the manual page for the Native::ClassFile class. it's giving "short but lowkey stacked," and we're gonna get through every single method together. grab a snack π
β¨ Name β¨
SPVM::Native::ClassFile β literally the class that holds Information of Class Files. that's it, that's the vibe. π
π¦ Description π¦
so the Native::ClassFile class of SPVM has methods to manipulate information of class files. no cap, that's the whole job. it's a little info-holder, and honestly? iconic for it. π
πΈ Usage πΈ
you pull it in like this, exactly like this, don't get creative:
use Native::ClassFile;
π Instance Methods π
these are all instance methods, so they live on your object. every single one of them throws an exception if a memory error occurs β that's a real caveat, so keep it in your head fr fr π. i'm gonna say it once up top so i don't have to scream it twelve times: if a memory error occurs, an exception is thrown. (okay i'll still mention it each time because the original does and i don't skip details π«Ά)
π get_class_name
method get_class_name : string ();
returns the class name. that's it. returns the class name.
if a memory error occurs, an exception is thrown.
π§ get_file
method get_file : string ();
returns the file.
if a memory error occurs, an exception is thrown.
π set_file
method set_file : void ($file : string);
sets the file. it takes $file, a string, and gives you back void β so, nothing. it just does the thing.
if a memory error occurs, an exception is thrown.
π₯ get_dir
method get_dir : string ();
returns the directory.
if a memory error occurs, an exception is thrown.
π set_dir
method set_dir : void ($dir : string);
sets the directory. $dir is a string, return type is void.
if a memory error occurs, an exception is thrown.
β get_rel_file
method get_rel_file : string ();
returns the relative file.
if a memory error occurs, an exception is thrown.
π set_rel_file
method set_rel_file : void ($rel_file : string);
sets the relative file. $rel_file is a string, and you get void back. (the original page has a lil typo here β "Ss the relative file" β but bestie, it means sets. we love a typo, it's human. π)
if a memory error occurs, an exception is thrown.
π¦ get_content
method get_content : string ();
returns the content.
if a memory error occurs, an exception is thrown.
πΈ set_content
method set_content : void ($content : string);
sets the content. $content is a string, returns void.
if a memory error occurs, an exception is thrown.
π get_content_length
method get_content_length : int ();
returns the length of the content. note it's an int, not a string β it's the length, okay? π
if a memory error occurs, an exception is thrown.
π set_content_length
method set_content_length : void ($content_length : int);
sets the length of the content. $content_length is an int, returns void.
if a memory error occurs, an exception is thrown.
quick vibe check π β that's twelve methods total: six getters, six setters, all paired up like little matching accessories.get_class_name,get_file/set_file,get_dir/set_dir,get_rel_file/set_rel_file,get_content/set_content,get_content_length/set_content_length. you did not miss one. periodt.
π«Ά Copyright & License π«Ά
copyright (c) 2023 Yuki Kimoto
MIT License
and that's the whole page, bestie! β¨ this one was perl v5.42.2, dated 2026-02-03, and it's the SPVM::N...lassFile(3) page. go forth and manipulate some class file info πππ¦
π¦ where this page comes from
- alpine 3.24: spvm-doc 0.990125-r0 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms