|
#region Using directives
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
#endregion
namespace HugoWett.ScriptLib
{
/// <summary>
/// This class represents a class in the script files. It contains information about name,
/// base class and namespace. ClassDefinition-objects are only created for objects that
/// extends types specified in the script configuration file.
/// </summary>
public class ClassDefinition
{
private SourceFile file;
/// <summary>
/// Gets the source file information for the file that contains the class definition
/// </summary>
/// <value></value>
public SourceFile File
{
get
{
return file;
}
}
private string name=string.Empty;
/// <summary>
/// Gets or sets the name of the class
/// </summary>
/// <value></value>
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}
private Type baseClass;
/// <summary>
/// Gets or sets the base type of the class
/// </summary>
/// <value></value>
public Type BaseClass
{
get
{
return baseClass;
}
set
{
baseClass = value;
}
}
/// <summary>
/// Gets the namespace of the class
/// </summary>
/// <value></value>
public string Namespace
{
get
{
return file.Namespace;
}
}
/// <summary>
/// Constructor for the class definition
/// </summary>
/// <param name="file">The source file that contains the class definition</param>
public ClassDefinition(SourceFile file)
{
this.file = file;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I'm 23 years old and I study informatics at the university of Lund. I'm currently working on my bachelor thesis on predicate logic in .Net.
When it comes to development I'm totally hooked on .Net, it is probably the most exiting platform to work on today, and I'm looking forward to its second incarnation in Longhorn.