C# Class LibNative, GreenTeaScript

Show file Open project: GreenTeaScript/GreenTeaScript

Public Methods

Method Description
ApplyMethod ( GtFunc Func, object Self, object Params ) : object
ApplyMethodV ( GtFunc Func, object Self ) : object
ApplyParseFunc ( GtFunc ParseFunc, GtNameSpace NameSpace, GtTokenContext TokenContext, GtSyntaxTree LeftTree, GtSyntaxPattern Pattern ) : GtSyntaxTree
ApplyTokenFunc ( GtFunc TokenFunc, object TokenContext, string Text, long pos ) : long
ApplyTypeFunc ( GtFunc TypeFunc, GtTypeEnv Gamma, GtSyntaxTree ParsedTree, GtType ContextType ) : GtNode
GetClassName ( object Value ) : string
GetClassOfValue ( object Value ) : Type
GetNativeFieldValue ( object ObjectValue, FieldInfo NativeField ) : object
GetNativeType ( Type NativeClass ) : GtType
ImportClass ( String ClassName ) : Type
ImportMethod ( GtType ContextType, String FullName, bool StaticMethodOnly ) : MethodInfo
ImportNativeObject ( GtNameSpace NameSpace, string PackageName ) : object
ImportStaticFieldValue ( GtParserContext Context, GtType ClassType, String Symbol ) : object
ImportStaticObject ( GtParserContext Context, Type NativeClass, string Symbol ) : object
LoadNativeConstructors ( GtParserContext Context, GtType ClassType, List FuncList ) : void
LoadNativeField ( GtParserContext Context, GtType ClassType, String FieldName, Boolean GetSetter ) : GtFunc
LoadNativeMethods ( GtParserContext Context, GtType ClassType, String FuncName, List FuncList ) : void
MatchNativeMethod ( GtType GreenTypeParams, MethodInfo CLRMethod ) : bool

Private Methods

Method Description
AcceptJavaType ( GtType GreenType, Type Type ) : bool

Method Details

ApplyMethod() public static method

public static ApplyMethod ( GtFunc Func, object Self, object Params ) : object
Func GtFunc
Self object
Params object
return object

ApplyMethodV() public static method

public static ApplyMethodV ( GtFunc Func, object Self ) : object
Func GtFunc
Self object
return object

ApplyParseFunc() public static method

public static ApplyParseFunc ( GtFunc ParseFunc, GtNameSpace NameSpace, GtTokenContext TokenContext, GtSyntaxTree LeftTree, GtSyntaxPattern Pattern ) : GtSyntaxTree
ParseFunc GtFunc
NameSpace GtNameSpace
TokenContext GtTokenContext
LeftTree GtSyntaxTree
Pattern GtSyntaxPattern
return GtSyntaxTree

ApplyTokenFunc() public static method

public static ApplyTokenFunc ( GtFunc TokenFunc, object TokenContext, string Text, long pos ) : long
TokenFunc GtFunc
TokenContext object
Text string
pos long
return long

ApplyTypeFunc() public static method

public static ApplyTypeFunc ( GtFunc TypeFunc, GtTypeEnv Gamma, GtSyntaxTree ParsedTree, GtType ContextType ) : GtNode
TypeFunc GtFunc
Gamma GtTypeEnv
ParsedTree GtSyntaxTree
ContextType GtType
return GtNode

GetClassName() public static method

public static GetClassName ( object Value ) : string
Value object
return string

GetClassOfValue() public static method

public static GetClassOfValue ( object Value ) : Type
Value object
return Type

GetNativeFieldValue() public static method

public static GetNativeFieldValue ( object ObjectValue, FieldInfo NativeField ) : object
ObjectValue object
NativeField FieldInfo
return object

GetNativeType() public static method

public static GetNativeType ( Type NativeClass ) : GtType
NativeClass Type
return GtType

ImportClass() public static method

public static ImportClass ( String ClassName ) : Type
ClassName String
return Type

ImportMethod() public static method

public static ImportMethod ( GtType ContextType, String FullName, bool StaticMethodOnly ) : MethodInfo
ContextType GtType
FullName String
StaticMethodOnly bool
return MethodInfo

ImportNativeObject() public static method

public static ImportNativeObject ( GtNameSpace NameSpace, string PackageName ) : object
NameSpace GtNameSpace
PackageName string
return object

ImportStaticFieldValue() public static method

public static ImportStaticFieldValue ( GtParserContext Context, GtType ClassType, String Symbol ) : object
Context GtParserContext
ClassType GtType
Symbol String
return object

ImportStaticObject() public static method

public static ImportStaticObject ( GtParserContext Context, Type NativeClass, string Symbol ) : object
Context GtParserContext
NativeClass Type
Symbol string
return object

LoadNativeConstructors() public static method

public static LoadNativeConstructors ( GtParserContext Context, GtType ClassType, List FuncList ) : void
Context GtParserContext
ClassType GtType
FuncList List
return void

LoadNativeField() public static method

public static LoadNativeField ( GtParserContext Context, GtType ClassType, String FieldName, Boolean GetSetter ) : GtFunc
Context GtParserContext
ClassType GtType
FieldName String
GetSetter Boolean
return GtFunc

LoadNativeMethods() public static method

public static LoadNativeMethods ( GtParserContext Context, GtType ClassType, String FuncName, List FuncList ) : void
Context GtParserContext
ClassType GtType
FuncName String
FuncList List
return void

MatchNativeMethod() public static method

public static MatchNativeMethod ( GtType GreenTypeParams, MethodInfo CLRMethod ) : bool
GreenTypeParams GtType
CLRMethod MethodInfo
return bool