C# 클래스 XSharp.CodeDom.XSharpCodeGenerator

파일 보기 프로젝트 열기: X-Sharp/XSharpPublic 1 사용 예제들

공개 메소드들

메소드 설명
XSharpCodeGenerator ( ) : System

보호된 메소드들

메소드 설명
CmdArgsFromParameters ( CompilerParameters options ) : string
ContinueOnNewLine ( string st ) : void
CreateEscapedIdentifier ( string value ) : string
CreateValidIdentifier ( string value ) : string
GenerateArgumentReferenceExpression ( CodeArgumentReferenceExpression e ) : void
GenerateArrayCreateExpression ( CodeArrayCreateExpression e ) : void
GenerateArrayIndexerExpression ( CodeArrayIndexerExpression e ) : void
GenerateAssignStatement ( CodeAssignStatement e ) : void
GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement e ) : void
GenerateAttributeDeclarationsEnd ( CodeAttributeDeclarationCollection attributes ) : void
GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void
GenerateBaseReferenceExpression ( System.CodeDom.CodeBaseReferenceExpression e ) : void
GenerateCastExpression ( CodeCastExpression e ) : void
GenerateComment ( CodeComment e ) : void
GenerateCompileUnitEnd ( CodeCompileUnit e ) : void
GenerateCompileUnitStart ( CodeCompileUnit e ) : void
GenerateConditionStatement ( CodeConditionStatement e ) : void
GenerateConstructor ( CodeConstructor e, CodeTypeDeclaration c ) : void
GenerateDelegateCreateExpression ( CodeDelegateCreateExpression e ) : void
GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression e ) : void
GenerateEntryPointMethod ( CodeEntryPointMethod e, CodeTypeDeclaration c ) : void
GenerateEvent ( CodeMemberEvent e, CodeTypeDeclaration c ) : void
GenerateEventReferenceExpression ( CodeEventReferenceExpression e ) : void
GenerateExpressionStatement ( CodeExpressionStatement e ) : void
GenerateField ( CodeMemberField e ) : void
GenerateFieldReferenceExpression ( CodeFieldReferenceExpression e ) : void
GenerateGotoStatement ( CodeGotoStatement e ) : void
GenerateIndexerExpression ( CodeIndexerExpression e ) : void
GenerateIterationStatement ( CodeIterationStatement e ) : void
GenerateLabeledStatement ( CodeLabeledStatement e ) : void
GenerateLinePragmaEnd ( CodeLinePragma e ) : void
GenerateLinePragmaStart ( CodeLinePragma e ) : void
GenerateMethod ( CodeMemberMethod e, CodeTypeDeclaration c ) : void
GenerateMethodInvokeExpression ( CodeMethodInvokeExpression e ) : void
GenerateMethodReferenceExpression ( CodeMethodReferenceExpression e ) : void
GenerateMethodReturnStatement ( CodeMethodReturnStatement e ) : void
GenerateNamespace ( CodeNamespace e ) : void
GenerateNamespaceEnd ( CodeNamespace e ) : void
GenerateNamespaceImport ( CodeNamespaceImport e ) : void
GenerateNamespaceStart ( CodeNamespace e ) : void
GenerateObjectCreateExpression ( CodeObjectCreateExpression e ) : void
GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void
GenerateProperty ( CodeMemberProperty e, CodeTypeDeclaration c ) : void
GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression e ) : void
GeneratePropertySetValueReferenceExpression ( System.CodeDom.CodePropertySetValueReferenceExpression e ) : void
GenerateRemoveEventStatement ( CodeRemoveEventStatement e ) : void
GenerateSnippetExpression ( CodeSnippetExpression e ) : void
GenerateSnippetMember ( CodeSnippetTypeMember e ) : void
GenerateThisReferenceExpression ( System.CodeDom.CodeThisReferenceExpression e ) : void
GenerateThrowExceptionStatement ( CodeThrowExceptionStatement e ) : void
GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement e ) : void
GenerateTypeConstructor ( CodeTypeConstructor e ) : void
GenerateTypeEnd ( CodeTypeDeclaration e ) : void
GenerateTypeStart ( CodeTypeDeclaration e ) : void
GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement e ) : void
GenerateVariableReferenceExpression ( CodeVariableReferenceExpression e ) : void
GetTypeOutput ( CodeTypeReference typeRef ) : string
IsValidIdentifier ( string value ) : bool
OutputAttributeArgument ( CodeAttributeArgument arg ) : void
OutputMemberAccessModifier ( MemberAttributes attributes ) : void
OutputMemberScopeModifier ( MemberAttributes attributes ) : void
OutputOperator ( CodeBinaryOperatorType op ) : void
OutputType ( CodeTypeReference typeRef ) : void
ProcessCompilerOutputLine ( CompilerResults results, string line ) : void
QuoteSnippetString ( string value ) : string
Supports ( GeneratorSupport support ) : bool

비공개 메소드들

메소드 설명
BuildGenericArguments ( CodeTypeReferenceCollection typeArguments, int start, int len ) : String
EmitGenericTypeArgs ( CodeTypeReferenceCollection typeArgs ) : void
GenerateAttributes ( CodeAttributeDeclarationCollection attributes ) : void
GenerateAttributes ( CodeAttributeDeclarationCollection attributes, string prefix ) : void
GenerateAttributes ( CodeAttributeDeclarationCollection attributes, string prefix, bool inLine ) : void
GetBaseTypeOutput ( CodeTypeReference typeRef ) : string
OutputGenericArguments ( CodeTypeReferenceCollection typeArguments ) : void
OutputGenericParameters ( CodeTypeParameterCollection typeParameters ) : void
OutputTypeAttributes ( CodeTypeDeclaration e ) : void

메소드 상세

CmdArgsFromParameters() 보호된 메소드

protected CmdArgsFromParameters ( CompilerParameters options ) : string
options System.CodeDom.Compiler.CompilerParameters
리턴 string

ContinueOnNewLine() 보호된 메소드

protected ContinueOnNewLine ( string st ) : void
st string
리턴 void

CreateEscapedIdentifier() 보호된 메소드

protected CreateEscapedIdentifier ( string value ) : string
value string
리턴 string

CreateValidIdentifier() 보호된 메소드

protected CreateValidIdentifier ( string value ) : string
value string
리턴 string

GenerateArgumentReferenceExpression() 보호된 메소드

protected GenerateArgumentReferenceExpression ( CodeArgumentReferenceExpression e ) : void
e System.CodeDom.CodeArgumentReferenceExpression
리턴 void

GenerateArrayCreateExpression() 보호된 메소드

protected GenerateArrayCreateExpression ( CodeArrayCreateExpression e ) : void
e System.CodeDom.CodeArrayCreateExpression
리턴 void

GenerateArrayIndexerExpression() 보호된 메소드

protected GenerateArrayIndexerExpression ( CodeArrayIndexerExpression e ) : void
e System.CodeDom.CodeArrayIndexerExpression
리턴 void

GenerateAssignStatement() 보호된 메소드

protected GenerateAssignStatement ( CodeAssignStatement e ) : void
e System.CodeDom.CodeAssignStatement
리턴 void

GenerateAttachEventStatement() 보호된 메소드

protected GenerateAttachEventStatement ( System.CodeDom.CodeAttachEventStatement e ) : void
e System.CodeDom.CodeAttachEventStatement
리턴 void

GenerateAttributeDeclarationsEnd() 보호된 메소드

protected GenerateAttributeDeclarationsEnd ( CodeAttributeDeclarationCollection attributes ) : void
attributes System.CodeDom.CodeAttributeDeclarationCollection
리턴 void

GenerateAttributeDeclarationsStart() 보호된 메소드

protected GenerateAttributeDeclarationsStart ( CodeAttributeDeclarationCollection attributes ) : void
attributes System.CodeDom.CodeAttributeDeclarationCollection
리턴 void

GenerateBaseReferenceExpression() 보호된 메소드

protected GenerateBaseReferenceExpression ( System.CodeDom.CodeBaseReferenceExpression e ) : void
e System.CodeDom.CodeBaseReferenceExpression
리턴 void

GenerateCastExpression() 보호된 메소드

protected GenerateCastExpression ( CodeCastExpression e ) : void
e System.CodeDom.CodeCastExpression
리턴 void

GenerateComment() 보호된 메소드

protected GenerateComment ( CodeComment e ) : void
e System.CodeDom.CodeComment
리턴 void

GenerateCompileUnitEnd() 보호된 메소드

protected GenerateCompileUnitEnd ( CodeCompileUnit e ) : void
e System.CodeDom.CodeCompileUnit
리턴 void

GenerateCompileUnitStart() 보호된 메소드

protected GenerateCompileUnitStart ( CodeCompileUnit e ) : void
e System.CodeDom.CodeCompileUnit
리턴 void

GenerateConditionStatement() 보호된 메소드

protected GenerateConditionStatement ( CodeConditionStatement e ) : void
e System.CodeDom.CodeConditionStatement
리턴 void

GenerateConstructor() 보호된 메소드

protected GenerateConstructor ( CodeConstructor e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeConstructor
c System.CodeDom.CodeTypeDeclaration
리턴 void

GenerateDelegateCreateExpression() 보호된 메소드

protected GenerateDelegateCreateExpression ( CodeDelegateCreateExpression e ) : void
e System.CodeDom.CodeDelegateCreateExpression
리턴 void

GenerateDelegateInvokeExpression() 보호된 메소드

protected GenerateDelegateInvokeExpression ( CodeDelegateInvokeExpression e ) : void
e System.CodeDom.CodeDelegateInvokeExpression
리턴 void

GenerateEntryPointMethod() 보호된 메소드

protected GenerateEntryPointMethod ( CodeEntryPointMethod e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeEntryPointMethod
c System.CodeDom.CodeTypeDeclaration
리턴 void

GenerateEvent() 보호된 메소드

protected GenerateEvent ( CodeMemberEvent e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeMemberEvent
c System.CodeDom.CodeTypeDeclaration
리턴 void

GenerateEventReferenceExpression() 보호된 메소드

protected GenerateEventReferenceExpression ( CodeEventReferenceExpression e ) : void
e System.CodeDom.CodeEventReferenceExpression
리턴 void

GenerateExpressionStatement() 보호된 메소드

protected GenerateExpressionStatement ( CodeExpressionStatement e ) : void
e System.CodeDom.CodeExpressionStatement
리턴 void

GenerateField() 보호된 메소드

protected GenerateField ( CodeMemberField e ) : void
e System.CodeDom.CodeMemberField
리턴 void

GenerateFieldReferenceExpression() 보호된 메소드

protected GenerateFieldReferenceExpression ( CodeFieldReferenceExpression e ) : void
e System.CodeDom.CodeFieldReferenceExpression
리턴 void

GenerateGotoStatement() 보호된 메소드

protected GenerateGotoStatement ( CodeGotoStatement e ) : void
e System.CodeDom.CodeGotoStatement
리턴 void

GenerateIndexerExpression() 보호된 메소드

protected GenerateIndexerExpression ( CodeIndexerExpression e ) : void
e System.CodeDom.CodeIndexerExpression
리턴 void

GenerateIterationStatement() 보호된 메소드

protected GenerateIterationStatement ( CodeIterationStatement e ) : void
e System.CodeDom.CodeIterationStatement
리턴 void

GenerateLabeledStatement() 보호된 메소드

protected GenerateLabeledStatement ( CodeLabeledStatement e ) : void
e System.CodeDom.CodeLabeledStatement
리턴 void

GenerateLinePragmaEnd() 보호된 메소드

protected GenerateLinePragmaEnd ( CodeLinePragma e ) : void
e System.CodeDom.CodeLinePragma
리턴 void

GenerateLinePragmaStart() 보호된 메소드

protected GenerateLinePragmaStart ( CodeLinePragma e ) : void
e System.CodeDom.CodeLinePragma
리턴 void

GenerateMethod() 보호된 메소드

protected GenerateMethod ( CodeMemberMethod e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeMemberMethod
c System.CodeDom.CodeTypeDeclaration
리턴 void

GenerateMethodInvokeExpression() 보호된 메소드

protected GenerateMethodInvokeExpression ( CodeMethodInvokeExpression e ) : void
e System.CodeDom.CodeMethodInvokeExpression
리턴 void

GenerateMethodReferenceExpression() 보호된 메소드

protected GenerateMethodReferenceExpression ( CodeMethodReferenceExpression e ) : void
e System.CodeDom.CodeMethodReferenceExpression
리턴 void

GenerateMethodReturnStatement() 보호된 메소드

protected GenerateMethodReturnStatement ( CodeMethodReturnStatement e ) : void
e System.CodeDom.CodeMethodReturnStatement
리턴 void

GenerateNamespace() 보호된 메소드

protected GenerateNamespace ( CodeNamespace e ) : void
e System.CodeDom.CodeNamespace
리턴 void

GenerateNamespaceEnd() 보호된 메소드

protected GenerateNamespaceEnd ( CodeNamespace e ) : void
e System.CodeDom.CodeNamespace
리턴 void

GenerateNamespaceImport() 보호된 메소드

protected GenerateNamespaceImport ( CodeNamespaceImport e ) : void
e System.CodeDom.CodeNamespaceImport
리턴 void

GenerateNamespaceStart() 보호된 메소드

protected GenerateNamespaceStart ( CodeNamespace e ) : void
e System.CodeDom.CodeNamespace
리턴 void

GenerateObjectCreateExpression() 보호된 메소드

protected GenerateObjectCreateExpression ( CodeObjectCreateExpression e ) : void
e System.CodeDom.CodeObjectCreateExpression
리턴 void

GenerateParameterDeclarationExpression() 보호된 메소드

protected GenerateParameterDeclarationExpression ( CodeParameterDeclarationExpression e ) : void
e System.CodeDom.CodeParameterDeclarationExpression
리턴 void

GenerateProperty() 보호된 메소드

protected GenerateProperty ( CodeMemberProperty e, CodeTypeDeclaration c ) : void
e System.CodeDom.CodeMemberProperty
c System.CodeDom.CodeTypeDeclaration
리턴 void

GeneratePropertyReferenceExpression() 보호된 메소드

protected GeneratePropertyReferenceExpression ( CodePropertyReferenceExpression e ) : void
e System.CodeDom.CodePropertyReferenceExpression
리턴 void

GeneratePropertySetValueReferenceExpression() 보호된 메소드

protected GeneratePropertySetValueReferenceExpression ( System.CodeDom.CodePropertySetValueReferenceExpression e ) : void
e System.CodeDom.CodePropertySetValueReferenceExpression
리턴 void

GenerateRemoveEventStatement() 보호된 메소드

protected GenerateRemoveEventStatement ( CodeRemoveEventStatement e ) : void
e System.CodeDom.CodeRemoveEventStatement
리턴 void

GenerateSnippetExpression() 보호된 메소드

protected GenerateSnippetExpression ( CodeSnippetExpression e ) : void
e System.CodeDom.CodeSnippetExpression
리턴 void

GenerateSnippetMember() 보호된 메소드

protected GenerateSnippetMember ( CodeSnippetTypeMember e ) : void
e System.CodeDom.CodeSnippetTypeMember
리턴 void

GenerateThisReferenceExpression() 보호된 메소드

protected GenerateThisReferenceExpression ( System.CodeDom.CodeThisReferenceExpression e ) : void
e System.CodeDom.CodeThisReferenceExpression
리턴 void

GenerateThrowExceptionStatement() 보호된 메소드

protected GenerateThrowExceptionStatement ( CodeThrowExceptionStatement e ) : void
e System.CodeDom.CodeThrowExceptionStatement
리턴 void

GenerateTryCatchFinallyStatement() 보호된 메소드

protected GenerateTryCatchFinallyStatement ( CodeTryCatchFinallyStatement e ) : void
e System.CodeDom.CodeTryCatchFinallyStatement
리턴 void

GenerateTypeConstructor() 보호된 메소드

protected GenerateTypeConstructor ( CodeTypeConstructor e ) : void
e System.CodeDom.CodeTypeConstructor
리턴 void

GenerateTypeEnd() 보호된 메소드

protected GenerateTypeEnd ( CodeTypeDeclaration e ) : void
e System.CodeDom.CodeTypeDeclaration
리턴 void

GenerateTypeStart() 보호된 메소드

protected GenerateTypeStart ( CodeTypeDeclaration e ) : void
e System.CodeDom.CodeTypeDeclaration
리턴 void

GenerateVariableDeclarationStatement() 보호된 메소드

protected GenerateVariableDeclarationStatement ( CodeVariableDeclarationStatement e ) : void
e System.CodeDom.CodeVariableDeclarationStatement
리턴 void

GenerateVariableReferenceExpression() 보호된 메소드

protected GenerateVariableReferenceExpression ( CodeVariableReferenceExpression e ) : void
e System.CodeDom.CodeVariableReferenceExpression
리턴 void

GetTypeOutput() 보호된 메소드

protected GetTypeOutput ( CodeTypeReference typeRef ) : string
typeRef System.CodeDom.CodeTypeReference
리턴 string

IsValidIdentifier() 보호된 메소드

protected IsValidIdentifier ( string value ) : bool
value string
리턴 bool

OutputAttributeArgument() 보호된 메소드

protected OutputAttributeArgument ( CodeAttributeArgument arg ) : void
arg System.CodeDom.CodeAttributeArgument
리턴 void

OutputMemberAccessModifier() 보호된 메소드

protected OutputMemberAccessModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
리턴 void

OutputMemberScopeModifier() 보호된 메소드

protected OutputMemberScopeModifier ( MemberAttributes attributes ) : void
attributes MemberAttributes
리턴 void

OutputOperator() 보호된 메소드

protected OutputOperator ( CodeBinaryOperatorType op ) : void
op CodeBinaryOperatorType
리턴 void

OutputType() 보호된 메소드

protected OutputType ( CodeTypeReference typeRef ) : void
typeRef System.CodeDom.CodeTypeReference
리턴 void

ProcessCompilerOutputLine() 보호된 메소드

protected ProcessCompilerOutputLine ( CompilerResults results, string line ) : void
results System.CodeDom.Compiler.CompilerResults
line string
리턴 void

QuoteSnippetString() 보호된 메소드

protected QuoteSnippetString ( string value ) : string
value string
리턴 string

Supports() 보호된 메소드

protected Supports ( GeneratorSupport support ) : bool
support GeneratorSupport
리턴 bool

XSharpCodeGenerator() 공개 메소드

public XSharpCodeGenerator ( ) : System
리턴 System