SPVM::N...lassFile(3)

πŸ“¦ version 0.990125, in alpine 3.24

πŸ’… 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 (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