C# Class Rakudo.Metamodel.Representations.RakudoCodeRef

A representation for a low-level code object (something that actually references a piece of code that we'll run). This is used for things that serve the role of an only sub (that has a body) and a dispatcher (which has a body as well as a list of candidates that it operates on).
Inheritance: Representation
Afficher le fichier Open project: jnthn/6model Class Usage Examples

Méthodes publiques

Méthode Description
bind_attribute ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, RakudoObject Value ) : void
bind_attribute_with_hint ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, int Hint, RakudoObject Value ) : void
defined ( ThreadContext TC, RakudoObject Obj ) : bool

Determines if the representation is defined or not.

get_attribute ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name ) : RakudoObject
get_attribute_with_hint ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, int Hint ) : RakudoObject
get_int ( ThreadContext TC, RakudoObject Object ) : int
get_num ( ThreadContext TC, RakudoObject Object ) : double
get_str ( ThreadContext TC, RakudoObject Object ) : string
hint_for ( ThreadContext TC, RakudoObject ClassHandle, string Name ) : int
instance_of ( ThreadContext TC, RakudoObject WHAT ) : RakudoObject

Creates an instance of the type with the given type object.

set_int ( ThreadContext TC, RakudoObject Object, int Value ) : void
set_num ( ThreadContext TC, RakudoObject Object, double Value ) : void
set_str ( ThreadContext TC, RakudoObject Object, string Value ) : void
type_object_for ( ThreadContext TC, RakudoObject MetaPackage ) : RakudoObject

Create a new type object.

Method Details

bind_attribute() public méthode

public bind_attribute ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, RakudoObject Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
ClassHandle RakudoObject
Name string
Value RakudoObject
Résultat void

bind_attribute_with_hint() public méthode

public bind_attribute_with_hint ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, int Hint, RakudoObject Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
ClassHandle RakudoObject
Name string
Hint int
Value RakudoObject
Résultat void

defined() public méthode

Determines if the representation is defined or not.
public defined ( ThreadContext TC, RakudoObject Obj ) : bool
TC Rakudo.Runtime.ThreadContext
Obj RakudoObject
Résultat bool

get_attribute() public méthode

public get_attribute ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name ) : RakudoObject
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
ClassHandle RakudoObject
Name string
Résultat RakudoObject

get_attribute_with_hint() public méthode

public get_attribute_with_hint ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, int Hint ) : RakudoObject
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
ClassHandle RakudoObject
Name string
Hint int
Résultat RakudoObject

get_int() public méthode

public get_int ( ThreadContext TC, RakudoObject Object ) : int
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Résultat int

get_num() public méthode

public get_num ( ThreadContext TC, RakudoObject Object ) : double
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Résultat double

get_str() public méthode

public get_str ( ThreadContext TC, RakudoObject Object ) : string
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Résultat string

hint_for() public méthode

public hint_for ( ThreadContext TC, RakudoObject ClassHandle, string Name ) : int
TC Rakudo.Runtime.ThreadContext
ClassHandle RakudoObject
Name string
Résultat int

instance_of() public méthode

Creates an instance of the type with the given type object.
public instance_of ( ThreadContext TC, RakudoObject WHAT ) : RakudoObject
TC Rakudo.Runtime.ThreadContext
WHAT RakudoObject
Résultat RakudoObject

set_int() public méthode

public set_int ( ThreadContext TC, RakudoObject Object, int Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Value int
Résultat void

set_num() public méthode

public set_num ( ThreadContext TC, RakudoObject Object, double Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Value double
Résultat void

set_str() public méthode

public set_str ( ThreadContext TC, RakudoObject Object, string Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Value string
Résultat void

type_object_for() public méthode

Create a new type object.
public type_object_for ( ThreadContext TC, RakudoObject MetaPackage ) : RakudoObject
TC Rakudo.Runtime.ThreadContext
MetaPackage RakudoObject
Résultat RakudoObject