C# Class ABB.Swum.MethodContext

Encapsulates the program context relevant to a method declaration.
Inheritance: IdContext
Show file Open project: abb-iss/Swum.NET Class Usage Examples

Public Methods

Method Description
MethodContext ( ) : System

Creates a new MethodContext with default values.

MethodContext ( string idType ) : System

Creates a new MethodContext, with the given return type.

MethodContext ( string idType, bool idTypeIsPrimitive ) : System

Creates a new MethodContext.

MethodContext ( string idType, bool idTypeIsPrimitive, string declaringClass, IEnumerable formalParameters, bool isStatic, bool isConstructor, bool isDestructor ) : System

Creates a new MethodContext.

Method Details

MethodContext() public method

Creates a new MethodContext with default values.
public MethodContext ( ) : System
return System

MethodContext() public method

Creates a new MethodContext, with the given return type.
public MethodContext ( string idType ) : System
idType string The return type of the method.
return System

MethodContext() public method

Creates a new MethodContext.
public MethodContext ( string idType, bool idTypeIsPrimitive ) : System
idType string The return type of the method.
idTypeIsPrimitive bool Whether the return type is a primitive data type.
return System

MethodContext() public method

Creates a new MethodContext.
public MethodContext ( string idType, bool idTypeIsPrimitive, string declaringClass, IEnumerable formalParameters, bool isStatic, bool isConstructor, bool isDestructor ) : System
idType string The return type of the method.
idTypeIsPrimitive bool Whether the return type is a primitive data type.
declaringClass string The class that this method is a part of, String.Empty if not part of a class.
formalParameters IEnumerable A list of the formal parameters, including both type and name.
isStatic bool Whether this method is static or not.
isConstructor bool Whether this method is a constructor or not.
isDestructor bool Whether this method is a destructor or not.
return System