C# Class Kirikiri.Tjs2.TJS

Show file Open project: fantasydr/krkr-cs Class Usage Examples

Public Properties

Property Type Description
EnableDebugMode bool
IsLowMemory bool
IsTarminating bool
NULL_ARG Kirikiri.Tjs2.Variant[]
mEvalOperatorIsOnGlobal bool
mStorage StorageInterface
mUnaryAsteriskIgnoresPropAccess bool
mWarnOnNonGlobalEvalOperator bool

Public Methods

Method Description
AddScriptBlock ( ScriptBlock block ) : void
AllocateVariant ( ) : Variant
AssignMessage ( string name, string newmsg ) : bool
CompileScript ( string script, string name, int lineofs, bool isresultneeded, BinaryStream output ) : void
CreateArrayObject ( ) : Dispatch2
CreateArrayObject ( Holder classout ) : Dispatch2
CreateDictionaryObject ( ) : Dispatch2
CreateDictionaryObject ( Holder classout ) : Dispatch2
CreateMessageMapString ( ) : string
Dump ( ) : void
Dump ( int width ) : void
EvalExpression ( string expression, Variant result, Dispatch2 context, string name, int lineofs ) : void
ExecScript ( string script, Variant result, Dispatch2 context, string name, int lineofs ) : void
FinalizeApplication ( ) : void
FindNaitveClassID ( string name ) : int
FindNativeClassName ( int id ) : string
GetConsoleOutput ( ) : ConsoleOutput
GetGlobal ( ) : Dispatch2
GetMessageMapMessage ( string name ) : string
GetPPValue ( string name ) : int
Initialize ( ) : void
LexTest ( string script ) : void
LoadByteCode ( Variant result, Dispatch2 context, string name, BinaryStream input ) : void
MapGlobalStringMap ( string str ) : string
OutputExceptionToConsole ( string msg ) : void
OutputToConsole ( string mes ) : void
OutputToConsoleSeparator ( string text, int count ) : void
OutputToConsoleWithCentering ( string msg, int width ) : void
RegisterMessageMap ( string name, MessageMapper holder ) : void
RegisterNativeClass ( string name ) : int
ReleaseVariant ( Variant v ) : void
RemoveScriptBlock ( ScriptBlock block ) : void
SetConsoleOutput ( ConsoleOutput console ) : void
SetPPValue ( string name, int value ) : void
Shutdown ( ) : void
TJS ( ) : System.Collections.Generic
ToJavaCode ( string script, string name, int lineofs, bool isresultneeded ) : void
UnregisterMessageMap ( string name ) : void

Private Methods

Method Description
CompactScriptBlock ( ) : void

Method Details

AddScriptBlock() public method

public AddScriptBlock ( ScriptBlock block ) : void
block ScriptBlock
return void

AllocateVariant() public static method

public static AllocateVariant ( ) : Variant
return Variant

AssignMessage() public static method

public static AssignMessage ( string name, string newmsg ) : bool
name string
newmsg string
return bool

CompileScript() public method

public CompileScript ( string script, string name, int lineofs, bool isresultneeded, BinaryStream output ) : void
script string
name string
lineofs int
isresultneeded bool
output BinaryStream
return void

CreateArrayObject() public static method

public static CreateArrayObject ( ) : Dispatch2
return Dispatch2

CreateArrayObject() public static method

public static CreateArrayObject ( Holder classout ) : Dispatch2
classout Holder
return Dispatch2

CreateDictionaryObject() public static method

public static CreateDictionaryObject ( ) : Dispatch2
return Dispatch2

CreateDictionaryObject() public static method

public static CreateDictionaryObject ( Holder classout ) : Dispatch2
classout Holder
return Dispatch2

CreateMessageMapString() public static method

public static CreateMessageMapString ( ) : string
return string

Dump() public method

public Dump ( ) : void
return void

Dump() public method

public Dump ( int width ) : void
width int
return void

EvalExpression() public method

public EvalExpression ( string expression, Variant result, Dispatch2 context, string name, int lineofs ) : void
expression string
result Variant
context Dispatch2
name string
lineofs int
return void

ExecScript() public method

public ExecScript ( string script, Variant result, Dispatch2 context, string name, int lineofs ) : void
script string
result Variant
context Dispatch2
name string
lineofs int
return void

FinalizeApplication() public static method

public static FinalizeApplication ( ) : void
return void

FindNaitveClassID() public static method

public static FindNaitveClassID ( string name ) : int
name string
return int

FindNativeClassName() public static method

public static FindNativeClassName ( int id ) : string
id int
return string

GetConsoleOutput() public static method

public static GetConsoleOutput ( ) : ConsoleOutput
return ConsoleOutput

GetGlobal() public method

public GetGlobal ( ) : Dispatch2
return Dispatch2

GetMessageMapMessage() public static method

public static GetMessageMapMessage ( string name ) : string
name string
return string

GetPPValue() public method

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

Initialize() public static method

public static Initialize ( ) : void
return void

LexTest() public method

public LexTest ( string script ) : void
script string
return void

LoadByteCode() public method

public LoadByteCode ( Variant result, Dispatch2 context, string name, BinaryStream input ) : void
result Variant
context Dispatch2
name string
input BinaryStream
return void

MapGlobalStringMap() public static method

public static MapGlobalStringMap ( string str ) : string
str string
return string

OutputExceptionToConsole() public static method

public static OutputExceptionToConsole ( string msg ) : void
msg string
return void

OutputToConsole() public static method

public static OutputToConsole ( string mes ) : void
mes string
return void

OutputToConsoleSeparator() public static method

public static OutputToConsoleSeparator ( string text, int count ) : void
text string
count int
return void

OutputToConsoleWithCentering() public static method

public static OutputToConsoleWithCentering ( string msg, int width ) : void
msg string
width int
return void

RegisterMessageMap() public static method

public static RegisterMessageMap ( string name, MessageMapper holder ) : void
name string
holder MessageMapper
return void

RegisterNativeClass() public static method

public static RegisterNativeClass ( string name ) : int
name string
return int

ReleaseVariant() public static method

public static ReleaseVariant ( Variant v ) : void
v Variant
return void

RemoveScriptBlock() public method

public RemoveScriptBlock ( ScriptBlock block ) : void
block ScriptBlock
return void

SetConsoleOutput() public static method

public static SetConsoleOutput ( ConsoleOutput console ) : void
console ConsoleOutput
return void

SetPPValue() public method

public SetPPValue ( string name, int value ) : void
name string
value int
return void

Shutdown() public method

public Shutdown ( ) : void
return void

TJS() public method

public TJS ( ) : System.Collections.Generic
return System.Collections.Generic

ToJavaCode() public method

public ToJavaCode ( string script, string name, int lineofs, bool isresultneeded ) : void
script string
name string
lineofs int
isresultneeded bool
return void

UnregisterMessageMap() public static method

public static UnregisterMessageMap ( string name ) : void
name string
return void

Property Details

EnableDebugMode public static property

public static bool EnableDebugMode
return bool

IsLowMemory public static property

public static bool IsLowMemory
return bool

IsTarminating public static property

public static bool IsTarminating
return bool

NULL_ARG public static property

public static Variant[],Kirikiri.Tjs2 NULL_ARG
return Kirikiri.Tjs2.Variant[]

mEvalOperatorIsOnGlobal public static property

public static bool mEvalOperatorIsOnGlobal
return bool

mStorage public static property

public static StorageInterface mStorage
return StorageInterface

mUnaryAsteriskIgnoresPropAccess public static property

public static bool mUnaryAsteriskIgnoresPropAccess
return bool

mWarnOnNonGlobalEvalOperator public static property

public static bool mWarnOnNonGlobalEvalOperator
return bool