C# Class FileGenerator.MagickScript.ScriptCodeGenerator

Inheritance: CodeGenerator
Show file Open project: dlemstra/Magick.NET Class Usage Examples

Public Methods

Method Description
Write ( MagickScriptTypes types ) : void
WriteCode ( MagickScriptTypes types ) : void

Protected Methods

Method Description
GetName ( MemberInfo member ) : string
GetName ( ParameterInfo parameterInfo ) : string
GetName ( PropertyInfo propertyInfo ) : string
ScriptCodeGenerator ( ) : System
ScriptCodeGenerator ( CodeGenerator parent ) : System
WriteCall ( MethodBase method, ParameterInfo parameters ) : void
WriteCheckNull ( string name ) : void
WriteCode ( ) : void
WriteCreateMethod ( string typeName ) : void
WriteGetAttributeValue ( string typeName ) : void
WriteGetElementValue ( string typeName, string attributeName ) : void
WriteHashtableCall ( MethodBase method, ParameterInfo parameters ) : void
WriteHashtableParameters ( ParameterInfo parameters ) : void
WriteMethod ( MethodBase methods ) : void
WriteParameters ( ParameterInfo parameters ) : void
WriteSelectElement ( string typeName, string elementName ) : void
WriteUsing ( ) : void

Private Methods

Method Description
CheckDuplicateParameterNames ( MethodBase methods ) : void
WriteAttributeForEach ( ParameterInfo allParameters ) : void
WriteCallIfElse ( MethodBase methods ) : void
WriteElementForEach ( ParameterInfo allParameters ) : void
WriteGetValue ( ParameterInfo parameter ) : void
WriteInvalidCombinations ( MethodBase methods ) : void
WriteMethod ( MethodBase method, ParameterInfo parameters ) : void

Method Details

GetName() protected static method

protected static GetName ( MemberInfo member ) : string
member System.Reflection.MemberInfo
return string

GetName() protected method

protected GetName ( ParameterInfo parameterInfo ) : string
parameterInfo System.Reflection.ParameterInfo
return string

GetName() protected method

protected GetName ( PropertyInfo propertyInfo ) : string
propertyInfo System.Reflection.PropertyInfo
return string

ScriptCodeGenerator() protected method

protected ScriptCodeGenerator ( ) : System
return System

ScriptCodeGenerator() protected method

protected ScriptCodeGenerator ( CodeGenerator parent ) : System
parent CodeGenerator
return System

Write() public method

public Write ( MagickScriptTypes types ) : void
types MagickScriptTypes
return void

WriteCall() protected abstract method

protected abstract WriteCall ( MethodBase method, ParameterInfo parameters ) : void
method System.Reflection.MethodBase
parameters System.Reflection.ParameterInfo
return void

WriteCheckNull() protected method

protected WriteCheckNull ( string name ) : void
name string
return void

WriteCode() protected abstract method

protected abstract WriteCode ( ) : void
return void

WriteCode() public method

public WriteCode ( MagickScriptTypes types ) : void
types MagickScriptTypes
return void

WriteCreateMethod() protected method

protected WriteCreateMethod ( string typeName ) : void
typeName string
return void

WriteGetAttributeValue() protected method

protected WriteGetAttributeValue ( string typeName ) : void
typeName string
return void

WriteGetElementValue() protected method

protected WriteGetElementValue ( string typeName, string attributeName ) : void
typeName string
attributeName string
return void

WriteHashtableCall() protected abstract method

protected abstract WriteHashtableCall ( MethodBase method, ParameterInfo parameters ) : void
method System.Reflection.MethodBase
parameters System.Reflection.ParameterInfo
return void

WriteHashtableParameters() protected method

protected WriteHashtableParameters ( ParameterInfo parameters ) : void
parameters System.Reflection.ParameterInfo
return void

WriteMethod() protected method

protected WriteMethod ( MethodBase methods ) : void
methods System.Reflection.MethodBase
return void

WriteParameters() protected method

protected WriteParameters ( ParameterInfo parameters ) : void
parameters System.Reflection.ParameterInfo
return void

WriteSelectElement() protected method

protected WriteSelectElement ( string typeName, string elementName ) : void
typeName string
elementName string
return void

WriteUsing() protected method

protected WriteUsing ( ) : void
return void