C# 클래스 Rakudo.Metamodel.Representation

All representations should implement this API.
파일 보기 프로젝트 열기: jnthn/6model 1 사용 예제들

공개 메소드들

메소드 설명
bind_attribute ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, RakudoObject Value ) : void

Binds the given value to the specified attribute.

bind_attribute_with_hint ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, int Hint, RakudoObject Value ) : void

Binds the given value to the specified attribute, using the given hint.

defined ( ThreadContext TC, RakudoObject Obj ) : bool

Checks if a given object is defined.

get_attribute ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name ) : RakudoObject

Gets the current value for an attribute.

get_attribute_with_hint ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name, int Hint ) : RakudoObject

Gets the current value for an attribute, obtained using the given hint.

get_int ( ThreadContext TC, RakudoObject Object ) : int

Used with boxing. Gets an integer value, for representations that can hold one.

get_num ( ThreadContext TC, RakudoObject Object ) : double

Used with boxing. Gets a floating point value, for representations that can hold one.

get_str ( ThreadContext TC, RakudoObject Object ) : string

Used with boxing. Gets a string value, for representations that can hold one.

hint_for ( ThreadContext TC, RakudoObject ClassHandle, string Name ) : int

Gets the hint for the given attribute ID.

instance_of ( ThreadContext TC, RakudoObject WHAT ) : RakudoObject

Creates a new instance based on the type object.

set_int ( ThreadContext TC, RakudoObject Object, int Value ) : void

Used with boxing. Sets an integer value, for representations that can hold one.

set_num ( ThreadContext TC, RakudoObject Object, double Value ) : void

Used with boxing. Sets a floating point value, for representations that can hold one.

set_str ( ThreadContext TC, RakudoObject Object, string Value ) : void

Used with boxing. Sets a string value, for representations that can hold one.

type_object_for ( ThreadContext TC, RakudoObject HOW ) : RakudoObject

Creates a new type object of this representation, and associates it with the given HOW. Also sets up a new representation instance if needed.

메소드 상세

bind_attribute() 공개 추상적인 메소드

Binds the given value to the specified attribute.
public abstract 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
리턴 void

bind_attribute_with_hint() 공개 추상적인 메소드

Binds the given value to the specified attribute, using the given hint.
public abstract 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
리턴 void

defined() 공개 추상적인 메소드

Checks if a given object is defined.
public abstract defined ( ThreadContext TC, RakudoObject Obj ) : bool
TC Rakudo.Runtime.ThreadContext
Obj RakudoObject
리턴 bool

get_attribute() 공개 추상적인 메소드

Gets the current value for an attribute.
public abstract get_attribute ( ThreadContext TC, RakudoObject Object, RakudoObject ClassHandle, string Name ) : RakudoObject
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
ClassHandle RakudoObject
Name string
리턴 RakudoObject

get_attribute_with_hint() 공개 추상적인 메소드

Gets the current value for an attribute, obtained using the given hint.
public abstract 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
리턴 RakudoObject

get_int() 공개 추상적인 메소드

Used with boxing. Gets an integer value, for representations that can hold one.
public abstract get_int ( ThreadContext TC, RakudoObject Object ) : int
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
리턴 int

get_num() 공개 추상적인 메소드

Used with boxing. Gets a floating point value, for representations that can hold one.
public abstract get_num ( ThreadContext TC, RakudoObject Object ) : double
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
리턴 double

get_str() 공개 추상적인 메소드

Used with boxing. Gets a string value, for representations that can hold one.
public abstract get_str ( ThreadContext TC, RakudoObject Object ) : string
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
리턴 string

hint_for() 공개 추상적인 메소드

Gets the hint for the given attribute ID.
public abstract hint_for ( ThreadContext TC, RakudoObject ClassHandle, string Name ) : int
TC Rakudo.Runtime.ThreadContext
ClassHandle RakudoObject
Name string
리턴 int

instance_of() 공개 추상적인 메소드

Creates a new instance based on the type object.
public abstract instance_of ( ThreadContext TC, RakudoObject WHAT ) : RakudoObject
TC Rakudo.Runtime.ThreadContext
WHAT RakudoObject
리턴 RakudoObject

set_int() 공개 추상적인 메소드

Used with boxing. Sets an integer value, for representations that can hold one.
public abstract set_int ( ThreadContext TC, RakudoObject Object, int Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Value int
리턴 void

set_num() 공개 추상적인 메소드

Used with boxing. Sets a floating point value, for representations that can hold one.
public abstract set_num ( ThreadContext TC, RakudoObject Object, double Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Value double
리턴 void

set_str() 공개 추상적인 메소드

Used with boxing. Sets a string value, for representations that can hold one.
public abstract set_str ( ThreadContext TC, RakudoObject Object, string Value ) : void
TC Rakudo.Runtime.ThreadContext
Object RakudoObject
Value string
리턴 void

type_object_for() 공개 추상적인 메소드

Creates a new type object of this representation, and associates it with the given HOW. Also sets up a new representation instance if needed.
public abstract type_object_for ( ThreadContext TC, RakudoObject HOW ) : RakudoObject
TC Rakudo.Runtime.ThreadContext
HOW RakudoObject
리턴 RakudoObject