using System;
using System.Collections;
using System.Collections.Specialized;
namespace AnticipatingMinds.Genesis.CodeDOM{
/// <summary>
/// Type method declaration
/// </summary>
/// <remarks>ECMA 334 - p. 229, line 27.</remarks>
[Serializable()]
public class CodeTypeMethodDeclaration : CodeTypeMemberDeclaration
{
/// <summary>
/// Initializes new instance of the <see cref="CodeTypeMethodDeclaration"/> class.
/// </summary>
public CodeTypeMethodDeclaration(): base (){}
/// <summary>
/// Gets method formal parametrs list.
/// </summary>
/// <remarks>ECMA 334 - p. 229, line 33.</remarks>
public CodeMethodParameterCollection Parameters
{
get
{
return parameters;
}
}
/// <summary>
/// Gets method return type.
/// </summary>
/// <remarks>ECMA 334 - p. 230, line 1.</remarks>
public CodeTypeReference ReturnType
{
get
{
return returnType;
}
set
{
returnType = value;
}
}
/// <summary>
/// Gets the body of the type memebr.
/// </summary>
/// <remarks>ECMA 334 - p. 230, line 7.</remarks>
public CodeStatementBlock Statements
{
get
{
return body;
}
set
{
body = value;
}
}
/// <summary>
/// Method name.
/// </summary>
public virtual string Name
{
get
{
return name;
}
set
{
name = (value == null ? string.Empty : value);
}
}
private string name = string.Empty;
private CodeStatementBlock body = new CodeStatementBlock();
private CodeMethodParameterCollection parameters = new CodeMethodParameterCollection();
private CodeTypeReference returnType;
}
}
|