public abstract class CodeGenerator : ICodeGenerator
|
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
IsValidLanguageIndependentIdentifier | Gets a value indicating whether the specified value is a valid language-independent identifier. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
ctor #1 | Default constructor. This constructor is called by derived class constructors to initialize state in this type. |
CurrentMember | Read-only Gets the current member of the class. |
CurrentMemberName | Read-only Gets the current member name. |
CurrentTypeName | Read-only Gets the current class name. |
Indent | Read-write Gets or sets the amount of spaces to indent each indentation level. |
IsCurrentClass | Read-only Gets a value indicating whether the current object being generated is a class. |
IsCurrentDelegate | Read-only Gets a value indicating whether the current object being generated is a delegate. |
IsCurrentEnum | Read-only Gets a value indicating whether the current object being generated is an enumeration. |
IsCurrentInterface | Read-only Gets a value indicating whether the current object being generated is an interface. |
IsCurrentStruct | Read-only Gets a value indicating whether the current object being generated is a value type or struct. |
NullToken | Read-only Gets the token that represents null. |
Options | Read-only Gets the options to be used by the code generator. |
Output | Read-only Gets the TextWriter to use for output. |
ContinueOnNewLine | Generates a line-continuation character and outputs the specified string on a new line. |
CreateEscapedIdentifier | Creates an escaped identifier for the specified value. |
CreateValidIdentifier | Creates a valid identifier for the specified value. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
GenerateArgumentReferenceExpression | Generates code for the specified argument reference expression. |
GenerateArrayCreateExpression | Generates code for the specified array creation expression. |
GenerateArrayIndexerExpression | Generates code for the specified array indexer expression. |
GenerateAssignStatement | Generates code for the specified assignment statement. |
GenerateAttachEventStatement | Generates code for the specified attach event statement. |
GenerateAttributeDeclarationsEnd | Generates code for the specified attribute block end. |
GenerateAttributeDeclarationsStart | Generates code for the specified attribute block start. |
GenerateBaseReferenceExpression | Generates code for the specified base reference expression. |
GenerateBinaryOperatorExpression | Generates code for the specified binary operator expression. |
GenerateCastExpression | Generates code for the specified cast expression. |
GenerateComment | Generates code for the specified comment. |
GenerateCommentStatement | Generates code for the specified comment statement. |
GenerateCommentStatements | Generates code for the specified comment statements. |
GenerateCompileUnit | Generates code for the specified compile unit. |
GenerateCompileUnitEnd | Generates code for the end of a compile unit. |
GenerateCompileUnitStart | Generates code for the start of a compile unit. |
GenerateConditionStatement | Generates code for the specified conditional statement. |
GenerateConstructor | Generates code for the specified constructor. |
GenerateDecimalValue | Generates code for the specified decimal value. |
GenerateDelegateCreateExpression | Generates code for the specified delegate creation expression. |
GenerateDelegateInvokeExpression | Generates code for the specified delegate invoke expression. |
GenerateDirectionExpression | Generates code for the specified direction expression. |
GenerateDoubleValue | Generates code for a double-precision floating point number. |
GenerateEntryPointMethod | Generates code for the specified entry point method. |
GenerateEvent | Generates code for the specified event. |
GenerateEventReferenceExpression | Generates code for the specified event reference expression. |
GenerateExpression | Generates code for the specified code expression. |
GenerateExpressionStatement | Generates code for the specified expression statement. |
GenerateField | Generates code for the specified member field. |
GenerateFieldReferenceExpression | Generates code for the specified field reference expression. |
GenerateGotoStatement | Generates code for the specified goto statement. |
GenerateIndexerExpression | Generates code for the specified indexer expression. |
GenerateIterationStatement | Generates code for the specified iteration statement. |
GenerateLabeledStatement | Generates code for the specified labeled statement. |
GenerateLinePragmaEnd | Generates code for the specified line pragma end. |
GenerateLinePragmaStart | Generates code for the specified line pragma start. |
GenerateMethod | Generates code for the specified method. |
GenerateMethodInvokeExpression | Generates code for the specified method invoke expression. |
GenerateMethodReferenceExpression | Generates code for the specified method reference expression. |
GenerateMethodReturnStatement | Generates code for the specified method return statement. |
GenerateNamespace | Generates code for the specified namespace. |
GenerateNamespaceEnd | Generates code for the end of a namespace. |
GenerateNamespaceImport | Generates code for the specified namespace import. |
GenerateNamespaceImports | Generates code for the specified namespace import. |
GenerateNamespaces | Generates code for the namespaces in the specified compile unit. |
GenerateNamespaceStart | Generates code for the start of a namespace. |
GenerateObjectCreateExpression | Generates code for the specified object creation expression. |
GenerateParameterDeclarationExpression | Generates code for the specified parameter declaration expression. |
GeneratePrimitiveExpression | Generates code for the specified primitive expression. |
GenerateProperty | Generates code for the specified property. |
GeneratePropertyReferenceExpression | Generates code for the specified property reference expression. |
GeneratePropertySetValueReferenceExpression | Generates code for the specified property set value reference expression. |
GenerateRemoveEventStatement | Generates code for the specified remove event statement. |
GenerateSingleFloatValue | Generates code for a single-precision floating point number. |
GenerateSnippetCompileUnit | Outputs the code of the specified literal code fragment compile unit. |
GenerateSnippetExpression | Outputs the code of the specified literal code fragment expression. |
GenerateSnippetMember | Outputs the code of the specified literal code fragment class member. |
GenerateSnippetStatement | Outputs the code of the specified literal code fragment statement. |
GenerateStatement | Generates code for the specified statement. |
GenerateStatements | Generates code for the specified statement collection. |
GenerateThisReferenceExpression | Generates code for the specified this reference expression. |
GenerateThrowExceptionStatement | Generates code for the specified throw exception statement. |
GenerateTryCatchFinallyStatement | Generates code for the specified try...catch...finally statement. |
GenerateTypeConstructor | Generates code for the specified class constructor. |
GenerateTypeEnd | Generates code for the specified end class. |
GenerateTypeOfExpression | Generates code for the specified type of expression. |
GenerateTypeReferenceExpression | Generates code for the specified type reference expression. |
GenerateTypes | Generates code for the specified namespace and the classes it contains. |
GenerateTypeStart | Generates code for the specified start class. |
GenerateVariableDeclarationStatement | Generates code for the specified variable declaration statement. |
GenerateVariableReferenceExpression | Generates code for the specified variable reference expression. |
GetTypeOutput | Gets the name of the specified data type. |
IsValidIdentifier | Gets a value indicating whether the specified value is a valid identifier. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
OutputAttributeArgument | Outputs an argument in an attribute block. |
OutputAttributeDeclarations | Generates code for the specified attribute declaration collection. |
OutputDirection | Generates code for the specified FieldDirection. |
OutputExpressionList | Overloaded:OutputExpressionList(CodeExpressionCollection expressions) Generates code for the specified expression list. |
OutputExpressionList | Overloaded:OutputExpressionList(CodeExpressionCollection expressions, bool newlineBetweenItems) Generates code for the specified expression list. |
OutputFieldScopeModifier | Outputs a field scope modifier that corresponds to the specified attributes. |
OutputIdentifier | Outputs the specified identifier. |
OutputMemberAccessModifier | Generates code for the specified member access modifier. |
OutputMemberScopeModifier | Generates code for the specified member scope modifier. |
OutputOperator | Generates code for the specified operator. |
OutputParameters | Generates code for the specified parameters. |
OutputType | Generates code for the specified type. |
OutputTypeAttributes | Generates code for the specified type attributes. |
OutputTypeNamePair | Generates code for the specified object type and name pair. |
QuoteSnippetString | Converts the specified string by formatting it with escape codes. |
Supports | Gets a value indicating whether the specified code generation support is provided. |
ValidateIdentifier | Throws an exception if the specified value is not a valid identifier. |
Hierarchy:
protected CodeGenerator(); |
protected CodeTypeMember CurrentMember {get;}
|
protected string CurrentMemberName {get;}
|
protected string CurrentTypeName {get;}
|
protected int Indent {get; set;}
|
protected bool IsCurrentClass {get;}
|
protected bool IsCurrentDelegate {get;}
|
protected bool IsCurrentEnum {get;}
|
protected bool IsCurrentInterface {get;}
|
protected bool IsCurrentStruct {get;}
|
protected abstract string NullToken {get;}
|
protected CodeGeneratorOptions Options {get;}
|
protected TextWriter Output {get;}
|
protected virtual void ContinueOnNewLine( |
st
value
value
~CodeGenerator(); |
protected abstract void GenerateArgumentReferenceExpression( |
e
protected abstract void GenerateArrayCreateExpression( |
e
protected abstract void GenerateArrayIndexerExpression( |
e
protected abstract void GenerateAssignStatement( |
e
protected abstract void GenerateAttachEventStatement( |
e
protected abstract void GenerateAttributeDeclarationsEnd( |
attributes
protected abstract void GenerateAttributeDeclarationsStart( |
attributes
protected abstract void GenerateBaseReferenceExpression( |
e
protected virtual void GenerateBinaryOperatorExpression( |
e
protected abstract void GenerateCastExpression( |
e
protected abstract void GenerateComment( |
e
protected virtual void GenerateCommentStatement( |
e
protected virtual void GenerateCommentStatements( |
e
protected virtual void GenerateCompileUnit( |
e
protected virtual void GenerateCompileUnitEnd( |
e
protected virtual void GenerateCompileUnitStart( |
e
protected abstract void GenerateConditionStatement( |
e
protected abstract void GenerateConstructor( |
e
c
protected virtual void GenerateDecimalValue( |
d
protected abstract void GenerateDelegateCreateExpression( |
e
protected abstract void GenerateDelegateInvokeExpression( |
e
protected virtual void GenerateDirectionExpression( |
e
protected virtual void GenerateDoubleValue( |
d
protected abstract void GenerateEntryPointMethod( |
e
c
protected abstract void GenerateEvent( |
e
c
protected abstract void GenerateEventReferenceExpression( |
e
protected void GenerateExpression( |
e
protected abstract void GenerateExpressionStatement( |
e
protected abstract void GenerateField( |
e
protected abstract void GenerateFieldReferenceExpression( |
e
protected abstract void GenerateGotoStatement( |
e
protected abstract void GenerateIndexerExpression( |
e
protected abstract void GenerateIterationStatement( |
e
protected abstract void GenerateLabeledStatement( |
e
protected abstract void GenerateLinePragmaEnd( |
e
protected abstract void GenerateLinePragmaStart( |
e
protected abstract void GenerateMethod( |
e
c
protected abstract void GenerateMethodInvokeExpression( |
e
protected abstract void GenerateMethodReferenceExpression( |
e
protected abstract void GenerateMethodReturnStatement( |
e
protected virtual void GenerateNamespace( |
e
protected abstract void GenerateNamespaceEnd( |
e
protected abstract void GenerateNamespaceImport( |
e
protected void GenerateNamespaceImports( |
e
protected void GenerateNamespaces( |
e
protected abstract void GenerateNamespaceStart( |
e
protected abstract void GenerateObjectCreateExpression( |
e
protected virtual void GenerateParameterDeclarationExpression( |
e
protected virtual void GeneratePrimitiveExpression( |
e
protected abstract void GenerateProperty( |
e
c
protected abstract void GeneratePropertyReferenceExpression( |
e
protected abstract void GeneratePropertySetValueReferenceExpression( |
e
protected abstract void GenerateRemoveEventStatement( |
e
protected virtual void GenerateSingleFloatValue( |
s
protected virtual void GenerateSnippetCompileUnit( |
e
protected abstract void GenerateSnippetExpression( |
e
protected abstract void GenerateSnippetMember( |
e
protected virtual void GenerateSnippetStatement( |
e
protected void GenerateStatement( |
e
protected void GenerateStatements( |
stms
protected abstract void GenerateThisReferenceExpression( |
e
protected abstract void GenerateThrowExceptionStatement( |
e
protected abstract void GenerateTryCatchFinallyStatement( |
e
protected abstract void GenerateTypeConstructor( |
e
protected abstract void GenerateTypeEnd( |
e
protected virtual void GenerateTypeOfExpression( |
e
protected virtual void GenerateTypeReferenceExpression( |
e
protected void GenerateTypes( |
e
protected abstract void GenerateTypeStart( |
e
protected abstract void GenerateVariableDeclarationStatement( |
e
protected abstract void GenerateVariableReferenceExpression( |
e
public virtual int GetHashCode(); |
public Type GetType(); |
protected abstract string GetTypeOutput( |
value
value
value
protected object MemberwiseClone(); |
protected virtual void OutputAttributeArgument( |
arg
protected virtual void OutputAttributeDeclarations( |
attributes
protected virtual void OutputDirection( |
dir
protected virtual void OutputExpressionList( |
expressions
protected virtual void OutputExpressionList( |
expressions
newlineBetweenItems
protected virtual void OutputFieldScopeModifier( |
attributes
protected virtual void OutputIdentifier( |
ident
protected virtual void OutputMemberAccessModifier( |
attributes
protected virtual void OutputMemberScopeModifier( |
attributes
protected virtual void OutputOperator( |
op
protected virtual void OutputParameters( |
parameters
protected abstract void OutputType( |
typeRef
protected virtual void OutputTypeAttributes( |
attributes
isStruct
isEnum
protected virtual void OutputTypeNamePair( |
typeRef
name
value
/"
might be used to represent
"
. These escape codes are used to replace elements of the specified string that might otherwise conflict with language syntax.
protected abstract bool Supports( |
support
public virtual string ToString(); |
protected virtual void ValidateIdentifier( |
value