NAME

SPVM::Builder::API - SPVM Builder Public APIs

SYNOPSYS

# Builder API
my $api = SPVM::Builder::API->new;

# Compile SPVM
my $success = $api->compile_spvm('MyLib');
unless ($success) {
  # Error message
  my $error_messages = $self->get_error_messages;
  for my $error_message (@$error_messages) {
    printf STDERR "[CompileError]$error_message\n";
  }
  exit 255;
}

# Class names
my $class_names = $api->get_class_names;

for my $class_name (@$class_names) {
  # Method names
  my $method_names = $api->get_method_names($class_name);
  
  for my $method_name (@$method_names) {
    # Method signature
    my $method_signature = $api->get_method_signature($class_name, $method_name);
    
    print "$class_name->$method_name: $method_signature\n";
  }
}

DESCRIPTION

SPVM::Builder::API is the public APIs of SPVM Builder.

SPVM::Builder is a private modules of SPVM.

The names and arguments of the methods are changed without warnings in the future release.

However, the methods is useful to get the information of SPVM modules.

SPVM::Builder::API provides the public APIs to call the methods. These APIs is public and stable.

METHODS

new

compile_spvm

get_error_messages

get_class_names

get_method_names

get_method_signature