C# Class net.sf.jni4net.proxygen.generator.CLRGenerator

Inheritance: Generator
ファイルを表示 Open project: Mazrick/jni4net

Protected Properties

Property Type Description
InitStatements System.CodeDom.CodeStatementCollection
initMethod System.CodeDom.CodeMemberMethod

Public Methods

Method Description
GenerateWrapperInitJ2C ( ) : void

Protected Methods

Method Description
CLRGenerator ( GType type ) : System.CodeDom
CreateMethodC2J ( GMethod method, CodeTypeDeclaration tgtType, string uName, bool isProxy ) : void
CreateMethodSignature ( CodeTypeDeclaration tgtType, GMethod method, bool isProxy ) : CodeStatementCollection
Generate ( ) : void
GenerateConstructionHelper ( CodeTypeDeclaration tgtType ) : void
GenerateParameters ( GMethod method, CodeMemberMethod tgtMethod ) : void
GenerateProxy ( CodeNamespace nameSpace ) : void

Create proxy for interface

GenerateStatic ( CodeNamespace nameSpace ) : void

Create static type info for interface

GenerateStaticFields ( CodeTypeDeclaration tgtType ) : void
GenerateTypeOfInit ( CodeTypeDeclaration tgtType, bool proxy ) : void
GenerateWrapperMethodsJ2C ( CodeTypeDeclaration tgtType ) : void
GetFileName ( string dirCs ) : string

Private Methods

Method Description
CCE ( string conversion, CodeTypeReference parameters, System.CodeDom.CodeExpression invokeExpression, bool env ) : CodeMethodInvokeExpression
CEEC2J ( string prefix, GType paramType, System.CodeDom.CodeExpression invokeExpression ) : CodeMethodInvokeExpression
CEEJ2C ( GType paramType, System.CodeDom.CodeExpression invokeExpression, bool param ) : CodeMethodInvokeExpression
CreateConversionExpressionC2J ( GType paramType, System.CodeDom.CodeExpression invokeExpression ) : CodeMethodInvokeExpression
CreateConversionExpressionC2JParam ( GType paramType, System.CodeDom.CodeExpression invokeExpression ) : CodeMethodInvokeExpression
CreateConversionExpressionJ2C ( GType paramType, System.CodeDom.CodeExpression invokeExpression ) : CodeMethodInvokeExpression
CreateConversionExpressionJ2CParam ( GType paramType, System.CodeDom.CodeExpression invokeExpression ) : CodeMethodInvokeExpression
GenerateCallJ2C ( CodeMemberMethod tgtMethod, GMethod method ) : void
GenerateCallParamsJ2C ( GMethod method ) : List
GenerateCallStatementC2J ( GMethod method, System.CodeDom.CodeExpression invokeExpression ) : CodeStatement
GenerateEndFrameC2J ( CodeStatementCollection tgtStatements ) : void
GenerateGetEnvC2J ( GMethod method, CodeStatementCollection tgtStatements ) : void
GenerateGetEnvJ2C ( CodeMemberMethod tgtMethod ) : void
GenerateInvokeExpressionC2J ( GMethod method, string uName ) : CodeMethodInvokeExpression
GenerateMethodCallEpilogJ2C ( CodeMemberMethod tgtMethod, GMethod method ) : void
GenerateMethodCallPrologJ2C ( CodeMemberMethod tgtMethod, GMethod method ) : void
GenerateMethodIdFieldC2J ( GMethod method, CodeTypeDeclaration tgtType, string uName ) : void
GenerateMethodJ2C ( GMethod method, CodeTypeDeclaration tgtType, string uName ) : void
GenerateMethodParamsJ2C ( CodeMemberMethod tgtMethod, GMethod method ) : void
GenerateMethodRegC2J ( GMethod method, string uName ) : void
GenerateMethodRegistrationJ2C ( GMethod method, string uName ) : void
GenerateNamespace ( ) : string

Compile unit

GenerateProxyMethodsC2J ( CodeTypeDeclaration tgtType ) : void
GetCallNameC2J ( GMethod method ) : string
GetExpressionsC2J ( GMethod method, string uName ) : System.CodeDom.CodeExpression[]

Method Details

CLRGenerator() protected method

protected CLRGenerator ( GType type ) : System.CodeDom
type net.sf.jni4net.proxygen.model.GType
return System.CodeDom

CreateMethodC2J() protected method

protected CreateMethodC2J ( GMethod method, CodeTypeDeclaration tgtType, string uName, bool isProxy ) : void
method net.sf.jni4net.proxygen.model.GMethod
tgtType System.CodeDom.CodeTypeDeclaration
uName string
isProxy bool
return void

CreateMethodSignature() protected method

protected CreateMethodSignature ( CodeTypeDeclaration tgtType, GMethod method, bool isProxy ) : CodeStatementCollection
tgtType System.CodeDom.CodeTypeDeclaration
method net.sf.jni4net.proxygen.model.GMethod
isProxy bool
return System.CodeDom.CodeStatementCollection

Generate() protected method

protected Generate ( ) : void
return void

GenerateConstructionHelper() protected method

protected GenerateConstructionHelper ( CodeTypeDeclaration tgtType ) : void
tgtType System.CodeDom.CodeTypeDeclaration
return void

GenerateParameters() protected method

protected GenerateParameters ( GMethod method, CodeMemberMethod tgtMethod ) : void
method net.sf.jni4net.proxygen.model.GMethod
tgtMethod System.CodeDom.CodeMemberMethod
return void

GenerateProxy() protected method

Create proxy for interface
protected GenerateProxy ( CodeNamespace nameSpace ) : void
nameSpace System.CodeDom.CodeNamespace
return void

GenerateStatic() protected method

Create static type info for interface
protected GenerateStatic ( CodeNamespace nameSpace ) : void
nameSpace System.CodeDom.CodeNamespace
return void

GenerateStaticFields() protected method

protected GenerateStaticFields ( CodeTypeDeclaration tgtType ) : void
tgtType System.CodeDom.CodeTypeDeclaration
return void

GenerateTypeOfInit() protected method

protected GenerateTypeOfInit ( CodeTypeDeclaration tgtType, bool proxy ) : void
tgtType System.CodeDom.CodeTypeDeclaration
proxy bool
return void

GenerateWrapperInitJ2C() public method

public GenerateWrapperInitJ2C ( ) : void
return void

GenerateWrapperMethodsJ2C() protected method

protected GenerateWrapperMethodsJ2C ( CodeTypeDeclaration tgtType ) : void
tgtType System.CodeDom.CodeTypeDeclaration
return void

GetFileName() protected method

protected GetFileName ( string dirCs ) : string
dirCs string
return string

Property Details

InitStatements protected_oe property

protected CodeStatementCollection,System.CodeDom InitStatements
return System.CodeDom.CodeStatementCollection

initMethod protected_oe property

protected CodeMemberMethod,System.CodeDom initMethod
return System.CodeDom.CodeMemberMethod