NAME

src/pmc/packfileannotation.pmc - PackfileAnnotation PMC

DESCRIPTION

This class implements a PackfileAnnotation object. It is an element in the PackfileAnnotations segment of the .pbc file. See PDD13 for a design spec.

Methods

init
Create empty PackfileAnnotation.
void mark()
Marks the object as live.
INTVAL get_offset()
Fetch the offset into the bytecode of the instruction that is being annotated.
void set_offset(INTVAL offset)
Set the offset into the bytecode of the instruction that is being annotated.
STRING* get_name()
Fetch the name of the annotation.
void set_name(STRING* name)
Set the name of the annotation.
PMC *get_pmc_value()
Fetch the PMC value of the annotation.
void set_pmc_value(PMC *value)
Set the PMC value of the annotation.
INTVAL get_type()
Get the type of the annotation.
  • 0 = Integer
  • 1 = String
  • 2 = PMC
INTVAL get_integer()
Fetch the integer value of the annotation.
void set_integer_native(INTVAL value)
Set the integer value of the annotation.
STRING * get_string()
Fetch the string value of the annotation.
void set_string_native(STRING * value)
Set the string value of the annotation.