C# Class AjTalk.Language.Block

Inheritance: IBlock
Show file Open project: ajlopez/AjTalk Class Usage Examples

Public Methods

Method Description
Block ( ) : System
Block ( string sourcecode ) : System
Block ( string sourcecode, Block outer ) : System
Clone ( ExecutionContext closure ) : Block
CompileArgument ( string argname ) : void
CompileBinarySend ( string msgname ) : void
CompileBlockJumpByteCodeAt ( ByteCode b, short jump, int position ) : void
CompileByteCode ( ByteCode b ) : void
CompileByteCode ( ByteCode b, byte arg ) : void
CompileByteCode ( ByteCode b, byte arg1, byte arg2 ) : void
CompileByteCodeAt ( ByteCode b, int position ) : void
CompileConstant ( object obj ) : byte
CompileGet ( string name ) : void
CompileGetBlock ( object obj ) : void
CompileGetConstant ( object obj ) : void
CompileGetDotNetType ( string name ) : void
CompileGlobal ( string globalname ) : byte
CompileInsert ( int position, int count ) : void
CompileInvokeDotNet ( string msgname ) : void
CompileJumpByteCode ( ByteCode b, short jump ) : void
CompileJumpByteCodeAt ( ByteCode b, short jump, int position ) : void
CompileLocal ( string localname ) : void
CompileSend ( string msgname ) : void
CompileSet ( string name ) : void
CreateContext ( System.Machine machine, object args ) : ExecutionContext
Execute ( System.Machine machine, object args ) : object
ExecuteInInterpreter ( Interpreter interpreter, object args ) : object
GetArgumentName ( int na ) : string
GetClassVariableName ( int n ) : string
GetConstant ( int nc ) : object
GetGlobalName ( int ng ) : string
GetInstanceVariableName ( int n ) : string
GetInstanceVariableOffset ( string name ) : int
GetLocalName ( int nl ) : string
MessageArity ( string msgname ) : byte

Protected Methods

Method Description
TryCompileGet ( string name ) : bool
TryCompileSet ( string name ) : bool

Private Methods

Method Description
CompileByte ( byte b ) : void
IsValueMessage ( string msgname ) : bool

Method Details

Block() public method

public Block ( ) : System
return System

Block() public method

public Block ( string sourcecode ) : System
sourcecode string
return System

Block() public method

public Block ( string sourcecode, Block outer ) : System
sourcecode string
outer Block
return System

Clone() public method

public Clone ( ExecutionContext closure ) : Block
closure ExecutionContext
return Block

CompileArgument() public method

public CompileArgument ( string argname ) : void
argname string
return void

CompileBinarySend() public method

public CompileBinarySend ( string msgname ) : void
msgname string
return void

CompileBlockJumpByteCodeAt() public method

public CompileBlockJumpByteCodeAt ( ByteCode b, short jump, int position ) : void
b ByteCode
jump short
position int
return void

CompileByteCode() public method

public CompileByteCode ( ByteCode b ) : void
b ByteCode
return void

CompileByteCode() public method

public CompileByteCode ( ByteCode b, byte arg ) : void
b ByteCode
arg byte
return void

CompileByteCode() public method

public CompileByteCode ( ByteCode b, byte arg1, byte arg2 ) : void
b ByteCode
arg1 byte
arg2 byte
return void

CompileByteCodeAt() public method

public CompileByteCodeAt ( ByteCode b, int position ) : void
b ByteCode
position int
return void

CompileConstant() public method

public CompileConstant ( object obj ) : byte
obj object
return byte

CompileGet() public method

public CompileGet ( string name ) : void
name string
return void

CompileGetBlock() public method

public CompileGetBlock ( object obj ) : void
obj object
return void

CompileGetConstant() public method

public CompileGetConstant ( object obj ) : void
obj object
return void

CompileGetDotNetType() public method

public CompileGetDotNetType ( string name ) : void
name string
return void

CompileGlobal() public method

public CompileGlobal ( string globalname ) : byte
globalname string
return byte

CompileInsert() public method

public CompileInsert ( int position, int count ) : void
position int
count int
return void

CompileInvokeDotNet() public method

public CompileInvokeDotNet ( string msgname ) : void
msgname string
return void

CompileJumpByteCode() public method

public CompileJumpByteCode ( ByteCode b, short jump ) : void
b ByteCode
jump short
return void

CompileJumpByteCodeAt() public method

public CompileJumpByteCodeAt ( ByteCode b, short jump, int position ) : void
b ByteCode
jump short
position int
return void

CompileLocal() public method

public CompileLocal ( string localname ) : void
localname string
return void

CompileSend() public method

public CompileSend ( string msgname ) : void
msgname string
return void

CompileSet() public method

public CompileSet ( string name ) : void
name string
return void

CreateContext() public method

public CreateContext ( System.Machine machine, object args ) : ExecutionContext
machine System.Machine
args object
return ExecutionContext

Execute() public method

public Execute ( System.Machine machine, object args ) : object
machine System.Machine
args object
return object

ExecuteInInterpreter() public method

public ExecuteInInterpreter ( Interpreter interpreter, object args ) : object
interpreter Interpreter
args object
return object

GetArgumentName() public method

public GetArgumentName ( int na ) : string
na int
return string

GetClassVariableName() public method

public GetClassVariableName ( int n ) : string
n int
return string

GetConstant() public method

public GetConstant ( int nc ) : object
nc int
return object

GetGlobalName() public method

public GetGlobalName ( int ng ) : string
ng int
return string

GetInstanceVariableName() public method

public GetInstanceVariableName ( int n ) : string
n int
return string

GetInstanceVariableOffset() public method

public GetInstanceVariableOffset ( string name ) : int
name string
return int

GetLocalName() public method

public GetLocalName ( int nl ) : string
nl int
return string

MessageArity() public static method

public static MessageArity ( string msgname ) : byte
msgname string
return byte

TryCompileGet() protected method

protected TryCompileGet ( string name ) : bool
name string
return bool

TryCompileSet() protected method

protected TryCompileSet ( string name ) : bool
name string
return bool