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

Inheritance: System.CodeDom.Compiler.CodeGenerator
ファイルを表示 Open project: Mazrick/jni4net Class Usage Examples

Protected Methods

Method Description
CreateEscapedIdentifier ( string value ) : string
CreateValidIdentifier ( string value ) : string
GenerateArgumentReferenceExpression ( CodeArgumentReferenceExpression expression ) : void
GenerateArrayCreateExpression ( CodeArrayCreateExpression expression ) : void
GenerateArrayIndexerExpression ( CodeArrayIndexerExpression expression ) : void
GenerateAssignStatement ( CodeAssignStatement statement ) : void
GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement statement ) : void
GenerateAttributeDeclarationsEnd ( CodeAttributeDeclarationCollection attributes ) : void
GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void
GenerateBaseReferenceExpression ( System.CodeDom.CodeBaseReferenceExpression expression ) : void
GenerateCastExpression ( CodeCastExpression expression ) : void
GenerateComment ( CodeComment comment ) : void
GenerateCompileUnit ( CodeCompileUnit compileUnit ) : void
GenerateCompileUnitStart ( CodeCompileUnit compileUnit ) : void
GenerateConditionStatement ( CodeConditionStatement statement ) : void
GenerateConstructor ( CodeConstructor constructor, CodeTypeDeclaration declaration ) : void
GenerateDecimalValue ( decimal d ) : void
GenerateDelegateCreateExpression ( CodeDelegateCreateExpression expression ) : void
GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression expression ) : void
GenerateDirectives ( CodeDirectiveCollection directives ) : void
GenerateEntryPointMethod ( CodeEntryPointMethod method, CodeTypeDeclaration declaration ) : void
GenerateEvent ( CodeMemberEvent eventRef, CodeTypeDeclaration declaration ) : void
GenerateEventReferenceExpression ( CodeEventReferenceExpression expression ) : void
GenerateExpressionStatement ( CodeExpressionStatement statement ) : void
GenerateField ( CodeMemberField field ) : void
GenerateFieldReferenceExpression ( CodeFieldReferenceExpression expression ) : void
GenerateGotoStatement ( CodeGotoStatement statement ) : void
GenerateIndexerExpression ( CodeIndexerExpression expression ) : void
GenerateIterationStatement ( CodeIterationStatement statement ) : void
GenerateLabeledStatement ( CodeLabeledStatement statement ) : void
GenerateLinePragmaEnd ( CodeLinePragma linePragma ) : void
GenerateLinePragmaStart ( CodeLinePragma linePragma ) : void
GenerateMethod ( CodeMemberMethod method, CodeTypeDeclaration declaration ) : void
GenerateMethodInvokeExpression ( CodeMethodInvokeExpression expression ) : void
GenerateMethodReferenceExpression ( CodeMethodReferenceExpression expression ) : void
GenerateMethodReturnStatement ( CodeMethodReturnStatement statement ) : void
GenerateNamespaceEnd ( CodeNamespace ns ) : void
GenerateNamespaceImport ( CodeNamespaceImport import ) : void
GenerateNamespaceStart ( CodeNamespace ns ) : void
GenerateObjectCreateExpression ( CodeObjectCreateExpression expression ) : void
GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void
GeneratePrimitiveExpression ( CodePrimitiveExpression e ) : void
GenerateProperty ( CodeMemberProperty property, CodeTypeDeclaration declaration ) : void
GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression expression ) : void
GeneratePropertySetValueReferenceExpression ( System.CodeDom.CodePropertySetValueReferenceExpression expression ) : void
GenerateRemoveEventStatement ( CodeRemoveEventStatement statement ) : void
GenerateSingleFloatValue ( float f ) : void
GenerateSnippetExpression ( CodeSnippetExpression expression ) : void
GenerateSnippetMember ( CodeSnippetTypeMember member ) : void
GenerateThisReferenceExpression ( System.CodeDom.CodeThisReferenceExpression expression ) : void
GenerateThrowExceptionStatement ( CodeThrowExceptionStatement statement ) : void
GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement statement ) : void
GenerateTypeConstructor ( CodeTypeConstructor constructor ) : void
GenerateTypeEnd ( CodeTypeDeclaration declaration ) : void
GenerateTypeOfExpression ( CodeTypeOfExpression e ) : void
GenerateTypeStart ( CodeTypeDeclaration declaration ) : void
GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement statement ) : void
GenerateVariableReferenceExpression ( CodeVariableReferenceExpression expression ) : void
GetTypeOutput ( CodeTypeReference value ) : string
IsValidIdentifier ( string identifier ) : bool
OutputFieldScopeModifier ( MemberAttributes attributes ) : void
OutputMemberAccessModifier ( MemberAttributes attributes ) : void
OutputMemberScopeModifier ( MemberAttributes attributes ) : void
OutputType ( CodeTypeReference typeRef ) : void
QuoteSnippetString ( string value ) : string
Supports ( GeneratorSupport support ) : bool

Private Methods

Method Description
DetermineTypeOutput ( CodeTypeReference type ) : string
FillKeywordTable ( ) : void
GenerateCharValue ( char c ) : void
GetSafeName ( string id ) : string
OutputAttributeDeclaration ( CodeAttributeDeclaration attribute ) : void
OutputAttributes ( CodeAttributeDeclarationCollection attributes, string prefix, bool inline ) : void
OutputStartBrace ( ) : void
OutputTypeAttributes ( CodeTypeDeclaration declaration ) : void
OutputVTableModifier ( MemberAttributes attributes ) : void
is_identifier_part_character ( char c ) : bool
is_identifier_start_character ( char c ) : bool

Method Details

CreateEscapedIdentifier() protected method

protected CreateEscapedIdentifier ( string value ) : string
value string
return string

CreateValidIdentifier() protected method

protected CreateValidIdentifier ( string value ) : string
value string
return string

GenerateArgumentReferenceExpression() protected method

protected GenerateArgumentReferenceExpression ( CodeArgumentReferenceExpression expression ) : void
expression System.CodeDom.CodeArgumentReferenceExpression
return void

GenerateArrayCreateExpression() protected method

protected GenerateArrayCreateExpression ( CodeArrayCreateExpression expression ) : void
expression System.CodeDom.CodeArrayCreateExpression
return void

GenerateArrayIndexerExpression() protected method

protected GenerateArrayIndexerExpression ( CodeArrayIndexerExpression expression ) : void
expression System.CodeDom.CodeArrayIndexerExpression
return void

GenerateAssignStatement() protected method

protected GenerateAssignStatement ( CodeAssignStatement statement ) : void
statement System.CodeDom.CodeAssignStatement
return void

GenerateAttachEventStatement() protected method

protected GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement statement ) : void
statement System.CodeDom.CodeAttachEventStatement
return void

GenerateAttributeDeclarationsEnd() protected method

protected GenerateAttributeDeclarationsEnd ( CodeAttributeDeclarationCollection attributes ) : void
attributes System.CodeDom.CodeAttributeDeclarationCollection
return void

GenerateAttributeDeclarationsStart() protected method

protected GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void
attributes System.CodeDom.CodeAttributeDeclarationCollection
return void

GenerateBaseReferenceExpression() protected method

protected GenerateBaseReferenceExpression ( System.CodeDom.CodeBaseReferenceExpression expression ) : void
expression System.CodeDom.CodeBaseReferenceExpression
return void

GenerateCastExpression() protected method

protected GenerateCastExpression ( CodeCastExpression expression ) : void
expression System.CodeDom.CodeCastExpression
return void

GenerateComment() protected method

protected GenerateComment ( CodeComment comment ) : void
comment System.CodeDom.CodeComment
return void

GenerateCompileUnit() protected method

protected GenerateCompileUnit ( CodeCompileUnit compileUnit ) : void
compileUnit System.CodeDom.CodeCompileUnit
return void

GenerateCompileUnitStart() protected method

protected GenerateCompileUnitStart ( CodeCompileUnit compileUnit ) : void
compileUnit System.CodeDom.CodeCompileUnit
return void

GenerateConditionStatement() protected method

protected GenerateConditionStatement ( CodeConditionStatement statement ) : void
statement System.CodeDom.CodeConditionStatement
return void

GenerateConstructor() protected method

protected GenerateConstructor ( CodeConstructor constructor, CodeTypeDeclaration declaration ) : void
constructor System.CodeDom.CodeConstructor
declaration System.CodeDom.CodeTypeDeclaration
return void

GenerateDecimalValue() protected method

protected GenerateDecimalValue ( decimal d ) : void
d decimal
return void

GenerateDelegateCreateExpression() protected method

protected GenerateDelegateCreateExpression ( CodeDelegateCreateExpression expression ) : void
expression System.CodeDom.CodeDelegateCreateExpression
return void

GenerateDelegateInvokeExpression() protected method

protected GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression expression ) : void
expression System.CodeDom.CodeDelegateInvokeExpression
return void

GenerateDirectives() protected method

protected GenerateDirectives ( CodeDirectiveCollection directives ) : void
directives System.CodeDom.CodeDirectiveCollection
return void

GenerateEntryPointMethod() protected method

protected GenerateEntryPointMethod ( CodeEntryPointMethod method, CodeTypeDeclaration declaration ) : void
method System.CodeDom.CodeEntryPointMethod
declaration System.CodeDom.CodeTypeDeclaration
return void

GenerateEvent() protected method

protected GenerateEvent ( CodeMemberEvent eventRef, CodeTypeDeclaration declaration ) : void
eventRef System.CodeDom.CodeMemberEvent
declaration System.CodeDom.CodeTypeDeclaration
return void

GenerateEventReferenceExpression() protected method

protected GenerateEventReferenceExpression ( CodeEventReferenceExpression expression ) : void
expression System.CodeDom.CodeEventReferenceExpression
return void

GenerateExpressionStatement() protected method

protected GenerateExpressionStatement ( CodeExpressionStatement statement ) : void
statement System.CodeDom.CodeExpressionStatement
return void

GenerateField() protected method

protected GenerateField ( CodeMemberField field ) : void
field System.CodeDom.CodeMemberField
return void

GenerateFieldReferenceExpression() protected method

protected GenerateFieldReferenceExpression ( CodeFieldReferenceExpression expression ) : void
expression System.CodeDom.CodeFieldReferenceExpression
return void

GenerateGotoStatement() protected method

protected GenerateGotoStatement ( CodeGotoStatement statement ) : void
statement System.CodeDom.CodeGotoStatement
return void

GenerateIndexerExpression() protected method

protected GenerateIndexerExpression ( CodeIndexerExpression expression ) : void
expression System.CodeDom.CodeIndexerExpression
return void

GenerateIterationStatement() protected method

protected GenerateIterationStatement ( CodeIterationStatement statement ) : void
statement System.CodeDom.CodeIterationStatement
return void

GenerateLabeledStatement() protected method

protected GenerateLabeledStatement ( CodeLabeledStatement statement ) : void
statement System.CodeDom.CodeLabeledStatement
return void

GenerateLinePragmaEnd() protected method

protected GenerateLinePragmaEnd ( CodeLinePragma linePragma ) : void
linePragma System.CodeDom.CodeLinePragma
return void

GenerateLinePragmaStart() protected method

protected GenerateLinePragmaStart ( CodeLinePragma linePragma ) : void
linePragma System.CodeDom.CodeLinePragma
return void

GenerateMethod() protected method

protected GenerateMethod ( CodeMemberMethod method, CodeTypeDeclaration declaration ) : void
method System.CodeDom.CodeMemberMethod
declaration System.CodeDom.CodeTypeDeclaration
return void

GenerateMethodInvokeExpression() protected method

protected GenerateMethodInvokeExpression ( CodeMethodInvokeExpression expression ) : void
expression System.CodeDom.CodeMethodInvokeExpression
return void

GenerateMethodReferenceExpression() protected method

protected GenerateMethodReferenceExpression ( CodeMethodReferenceExpression expression ) : void
expression System.CodeDom.CodeMethodReferenceExpression
return void

GenerateMethodReturnStatement() protected method

protected GenerateMethodReturnStatement ( CodeMethodReturnStatement statement ) : void
statement System.CodeDom.CodeMethodReturnStatement
return void

GenerateNamespaceEnd() protected method

protected GenerateNamespaceEnd ( CodeNamespace ns ) : void
ns System.CodeDom.CodeNamespace
return void

GenerateNamespaceImport() protected method

protected GenerateNamespaceImport ( CodeNamespaceImport import ) : void
import System.CodeDom.CodeNamespaceImport
return void

GenerateNamespaceStart() protected method

protected GenerateNamespaceStart ( CodeNamespace ns ) : void
ns System.CodeDom.CodeNamespace
return void

GenerateObjectCreateExpression() protected method

protected GenerateObjectCreateExpression ( CodeObjectCreateExpression expression ) : void
expression System.CodeDom.CodeObjectCreateExpression
return void

GenerateParameterDeclarationExpression() protected method

protected GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void
e System.CodeDom.CodeParameterDeclarationExpression
return void

GeneratePrimitiveExpression() protected method

protected GeneratePrimitiveExpression ( CodePrimitiveExpression e ) : void
e System.CodeDom.CodePrimitiveExpression
return void

GenerateProperty() protected method

protected GenerateProperty ( CodeMemberProperty property, CodeTypeDeclaration declaration ) : void
property System.CodeDom.CodeMemberProperty
declaration System.CodeDom.CodeTypeDeclaration
return void

GeneratePropertyReferenceExpression() protected method

protected GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression expression ) : void
expression System.CodeDom.CodePropertyReferenceExpression
return void

GeneratePropertySetValueReferenceExpression() protected method

protected GeneratePropertySetValueReferenceExpression ( System.CodeDom.CodePropertySetValueReferenceExpression expression ) : void
expression System.CodeDom.CodePropertySetValueReferenceExpression
return void

GenerateRemoveEventStatement() protected method

protected GenerateRemoveEventStatement ( CodeRemoveEventStatement statement ) : void
statement System.CodeDom.CodeRemoveEventStatement
return void

GenerateSingleFloatValue() protected method

protected GenerateSingleFloatValue ( float f ) : void
f float
return void

GenerateSnippetExpression() protected method

protected GenerateSnippetExpression ( CodeSnippetExpression expression ) : void
expression System.CodeDom.CodeSnippetExpression
return void

GenerateSnippetMember() protected method

protected GenerateSnippetMember ( CodeSnippetTypeMember member ) : void
member System.CodeDom.CodeSnippetTypeMember
return void

GenerateThisReferenceExpression() protected method

protected GenerateThisReferenceExpression ( System.CodeDom.CodeThisReferenceExpression expression ) : void
expression System.CodeDom.CodeThisReferenceExpression
return void

GenerateThrowExceptionStatement() protected method

protected GenerateThrowExceptionStatement ( CodeThrowExceptionStatement statement ) : void
statement System.CodeDom.CodeThrowExceptionStatement
return void

GenerateTryCatchFinallyStatement() protected method

protected GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement statement ) : void
statement System.CodeDom.CodeTryCatchFinallyStatement
return void

GenerateTypeConstructor() protected method

protected GenerateTypeConstructor ( CodeTypeConstructor constructor ) : void
constructor System.CodeDom.CodeTypeConstructor
return void

GenerateTypeEnd() protected method

protected GenerateTypeEnd ( CodeTypeDeclaration declaration ) : void
declaration System.CodeDom.CodeTypeDeclaration
return void

GenerateTypeOfExpression() protected method

protected GenerateTypeOfExpression ( CodeTypeOfExpression e ) : void
e System.CodeDom.CodeTypeOfExpression
return void

GenerateTypeStart() protected method

protected GenerateTypeStart ( CodeTypeDeclaration declaration ) : void
declaration System.CodeDom.CodeTypeDeclaration
return void

GenerateVariableDeclarationStatement() protected method

protected GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement statement ) : void
statement System.CodeDom.CodeVariableDeclarationStatement
return void

GenerateVariableReferenceExpression() protected method

protected GenerateVariableReferenceExpression ( CodeVariableReferenceExpression expression ) : void
expression System.CodeDom.CodeVariableReferenceExpression
return void

GetTypeOutput() protected method

protected GetTypeOutput ( CodeTypeReference value ) : string
value System.CodeDom.CodeTypeReference
return string

IsValidIdentifier() protected method

protected IsValidIdentifier ( string identifier ) : bool
identifier string
return bool

OutputFieldScopeModifier() protected method

protected OutputFieldScopeModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
return void

OutputMemberAccessModifier() protected method

protected OutputMemberAccessModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
return void

OutputMemberScopeModifier() protected method

protected OutputMemberScopeModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
return void

OutputType() protected method

protected OutputType ( CodeTypeReference typeRef ) : void
typeRef System.CodeDom.CodeTypeReference
return void

QuoteSnippetString() protected method

protected QuoteSnippetString ( string value ) : string
value string
return string

Supports() protected method

protected Supports ( GeneratorSupport support ) : bool
support GeneratorSupport
return bool