Name

SPVM::Builder::ObjectFileInfo - Object file information

Description

SPVM::Builder::ObjectFileInfo is a object file information.

Field Methods

Fields of SPVM::Builder::ObjectFileInfo.

file

  my $file = $object_file_info->file;
  $object_file_info->file($file);

Get and set the path of the object file.

source_file

  my $source_file = $object_file_info->source_file;
  $object_file_info->source_file($source_file);

Get and set the path of source file.

cc

  my $cc = $object_file_info->cc;
  $object_file_info->cc($cc);

Get and set the compiler name that compiled the object file.

ccflags

  my $ccflags = $object_file_info->ccflags;
  $object_file_info->ccflags($ccflags);

Get and set the compiler flags that compiled the object file. The default value is [].

class_name

  my $class_name = $object_file_info->class_name;
  $object_file_info->class_name($class_name);

Get and set the class name belonged to when the object file was compiled.

lib_type

  my $lib_type = $object_file_info->lib_type;
  $object_file_info->lib_type($lib_type);

Get and set the library type if the object is a static library or a dynamic library.

The values are static, or dynamic.

source_type

  my $source_type = $object_file_info->source_type;
  $object_file_info->source_type($source_type);

Get and set source type. native_module or resource.

config

  my $config = $object_file_info->config;
  $object_file_info->config($config);

Get and set the config that is used to compile the source file.

Methods

Methods of SPVM::Builder::ObjectFileInfo.

new

  my $object_file_info = SPVM::Builder::ObjectFileInfo->new;

to_string

  my $object_file = $object_file_info->to_string;

Get the object file name. This is same as object_file field.

Operators

SPVM::BlessedObject::String overloads the following operators.

bool

  my $bool = !!$object_file_info;
  

Always true.

stringify

  my $object_file_name = "$object_file_info";
  

Alias for "to_string".