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

Base class for java generator
Inheritance: Generator
显示文件 Open project: Mazrick/jni4net

Public Methods

Method Description
Write ( string newFile ) : void

create or merge files

Protected Methods

Method Description
ChangeNativeAttributes ( CodeMemberMethod tgtMethod ) : void
CreateMethodSignature ( GMethod method, bool skipSignature ) : CodeMemberMethod
Generate ( ) : void
GenerateParameters ( GMethod method, CodeMemberMethod tgtMethod ) : void
GenerateProxy ( CodeNamespace nameSpace ) : void

Create proxy for interface

GenerateTypeOfInit ( CodeTypeDeclaration tgtType ) : void
GetFileName ( string dirJava ) : string
JVMGenerator ( GType type ) : System.CodeDom
WrapMethodsMagic ( CodeTypeDeclaration tgtType, string start, string end ) : void

Private Methods

Method Description
GenerateNamespace ( ) : string

Compile unit

Method Details

ChangeNativeAttributes() protected method

protected ChangeNativeAttributes ( CodeMemberMethod tgtMethod ) : void
tgtMethod System.CodeDom.CodeMemberMethod
return void

CreateMethodSignature() protected method

protected CreateMethodSignature ( GMethod method, bool skipSignature ) : CodeMemberMethod
method net.sf.jni4net.proxygen.model.GMethod
skipSignature bool
return System.CodeDom.CodeMemberMethod

Generate() protected method

protected Generate ( ) : void
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

GenerateTypeOfInit() protected method

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

GetFileName() protected method

protected GetFileName ( string dirJava ) : string
dirJava string
return string

JVMGenerator() protected method

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

WrapMethodsMagic() protected method

protected WrapMethodsMagic ( CodeTypeDeclaration tgtType, string start, string end ) : void
tgtType System.CodeDom.CodeTypeDeclaration
start string
end string
return void

Write() public method

create or merge files
public Write ( string newFile ) : void
newFile string
return void