Name
SPVM::CallerInfo - Information about a Caller
Description
CallerInfo class in SPVM represents information about a caller, such as the method absolute name, the file name, and the line number.
Usage
my $caller = CallerInfo->new;
# Setters
$caller->set_method_abs_name("Foo#bar");
$caller->set_file("Foo.spvm");
$caller->set_line(10);
# Getters
my $method_abs_name = $caller->method_abs_name;
my $file = $caller->file;
my $line = $caller->line;
Details
This class is automatically loaded.
Fields
method_abs_name
has method_abs_name : rw string;
The absolute name of the method of the caller.
Note that for native methods, this field may contain a C-level function name such as SPVM__Foo__bar.
file
has file : rw string;
The file name where the caller is located.
line
has line : rw int;
The line number where the caller is located.
Class Methods
new
static method new : CallerInfo ();
Creates a new CallerInfo object and returns it.
Copyright & License
Copyright (c) 2026 Yuki Kimoto
MIT License