C# Class NClass.CSharp.CSharpLanguage

Inheritance: NClass.Core.DotNetLanguage
Show file Open project: gbaychev/NClass

Private Properties

Property Type Description
CSharpLanguage System
ValidateAccessModifiers void
ValidateOperationModifiers void

Public Methods

Method Description
GetAccessString ( AccessModifier access, bool forCode ) : string
GetClassModifierString ( ClassModifier modifier, bool forCode ) : string
GetFieldModifierString ( FieldModifier modifier, bool forCode ) : string
GetOperationModifierString ( OperationModifier modifier, bool forCode ) : string
GetValidName ( string name, bool isGenericName ) : string
GetValidTypeName ( string name ) : string
IsValidModifier ( AccessModifier modifier ) : bool
IsValidModifier ( FieldModifier modifier ) : bool
IsValidModifier ( OperationModifier modifier ) : bool
TryParseAccessModifier ( string value ) : AccessModifier
TryParseOperationModifier ( string value ) : OperationModifier

Protected Methods

Method Description
CreateClass ( ) : ClassType
CreateDelegate ( ) : DelegateType
CreateEnum ( ) : EnumType
CreateInterface ( ) : InterfaceType
CreateParameterCollection ( ) : ArgumentList
CreateStructure ( ) : StructureType
Implement ( Operation operation, CompositeType newParent, bool explicitly ) : Operation
Override ( Operation operation, CompositeType newParent ) : Operation
ValidateField ( Field field ) : void
ValidateOperation ( Operation operation ) : void

Private Methods

Method Description
CSharpLanguage ( ) : System
ValidateAccessModifiers ( Operation operation ) : void
ValidateOperationModifiers ( Operation operation ) : void

Method Details

CreateClass() protected method

protected CreateClass ( ) : ClassType
return NClass.Core.ClassType

CreateDelegate() protected method

protected CreateDelegate ( ) : DelegateType
return NClass.Core.DelegateType

CreateEnum() protected method

protected CreateEnum ( ) : EnumType
return NClass.Core.EnumType

CreateInterface() protected method

protected CreateInterface ( ) : InterfaceType
return NClass.Core.InterfaceType

CreateParameterCollection() protected method

protected CreateParameterCollection ( ) : ArgumentList
return ArgumentList

CreateStructure() protected method

protected CreateStructure ( ) : StructureType
return NClass.Core.StructureType

GetAccessString() public method

public GetAccessString ( AccessModifier access, bool forCode ) : string
access AccessModifier
forCode bool
return string

GetClassModifierString() public method

public GetClassModifierString ( ClassModifier modifier, bool forCode ) : string
modifier ClassModifier
forCode bool
return string

GetFieldModifierString() public method

public GetFieldModifierString ( FieldModifier modifier, bool forCode ) : string
modifier FieldModifier
forCode bool
return string

GetOperationModifierString() public method

public GetOperationModifierString ( OperationModifier modifier, bool forCode ) : string
modifier OperationModifier
forCode bool
return string

GetValidName() public method

/// The does not fit to the syntax. ///
public GetValidName ( string name, bool isGenericName ) : string
name string
isGenericName bool
return string

GetValidTypeName() public method

/// The does not fit to the syntax. ///
public GetValidTypeName ( string name ) : string
name string
return string

Implement() protected method

/// The language does not support explicit interface implementation. /// /// is null.-or- /// is null. ///
protected Implement ( Operation operation, CompositeType newParent, bool explicitly ) : Operation
operation Operation
newParent NClass.Core.CompositeType
explicitly bool
return Operation

IsValidModifier() public method

public IsValidModifier ( AccessModifier modifier ) : bool
modifier AccessModifier
return bool

IsValidModifier() public method

public IsValidModifier ( FieldModifier modifier ) : bool
modifier FieldModifier
return bool

IsValidModifier() public method

public IsValidModifier ( OperationModifier modifier ) : bool
modifier OperationModifier
return bool

Override() protected method

/// cannot be overridden. /// /// is null. ///
protected Override ( Operation operation, CompositeType newParent ) : Operation
operation Operation
newParent NClass.Core.CompositeType
return Operation

TryParseAccessModifier() public method

public TryParseAccessModifier ( string value ) : AccessModifier
value string
return AccessModifier

TryParseOperationModifier() public method

public TryParseOperationModifier ( string value ) : OperationModifier
value string
return OperationModifier

ValidateField() protected method

/// The contains invalid modifier combinations. ///
protected ValidateField ( Field field ) : void
field NClass.Core.Field
return void

ValidateOperation() protected method

/// The contains invalid modifier combinations. ///
protected ValidateOperation ( Operation operation ) : void
operation Operation
return void