コード例 #1
0
 /// <summary>
 /// Adds a member expression parameter to this DynaMember object.
 /// </summary>
 /// <param name="arg">An AosDynaArguement object containing the values for this parameter.</param>
 public void AddParameter(DynaArgument arg)
 {
     AddParameter(arg.ArgumentName, arg.DataType);
 }
コード例 #2
0
 /// <summary>
 /// Creates a new class constructor member within this AosDynaClass object.
 /// </summary>
 /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for this class constructor.</param>
 /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within this class constructor.</param>
 /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param>
 public void CreateConstructor(DynaArgument[] Arguments, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope)
 {
     DynaConstructor cc = new DynaConstructor();
     cc.TypeMember.Attributes = Scope;
     foreach (DynaExpression stmt in Statements)
         cc.TypeMember.Statements.Add(stmt.Expression);
     AddConstructor(cc);
 }
コード例 #3
0
 /// <summary>
 /// Creates a new entry point member within this DynaClass object.
 /// When adding this class to an DynaCode object containing other classes, there should be only *one* (1) EntryPoint for the entire DynaCode object.
 /// </summary>
 /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for the new entry point.</param></param>
 /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within the new entry point.</param></param>
 /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param>
 public void CreateEntryPoint(DynaArgument[] Arguements, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope)
 {
     DynaEntryPoint ep = new DynaEntryPoint();
     ep.TypeMember.Attributes = Scope;
     foreach (DynaExpression stmt in Statements)
         ep.TypeMember.Statements.Add(stmt.Expression);
     AddEntryPoint(ep);
 }
コード例 #4
0
 public int IndexOf(DynaArgument thisArg)
 {
     return codeArgs.IndexOf(thisArg.CodeArgument);
 }
コード例 #5
0
 /// <summary>
 /// Creates a new method member within this DynaClass object.
 /// </summary>
 /// <param name="Name">A string value containing the name of the new method.</param>
 /// <param name="Arguements">An array of DynaArguement objects specifying the incoming arguements for the new methdod.</param>
 /// <param name="Statements">An array of DynaStatement objects specifying the expression statements contained within this method.</param>
 /// <param name="Scope">A value of type MemberAttributes indicating the scope of the new method.</param>
 public void CreateMethod(string Name, DynaArgument[] Arguements, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope)
 {
     DynaMethod dm = new DynaMethod(Name);
     dm.TypeMember.Attributes = Scope;
     foreach (DynaExpression stmt in Statements)
         dm.TypeMember.Statements.Add(stmt.Expression);
     AddMethod(dm);
 }
コード例 #6
0
 public void Insert(int index, DynaArgument newArg)
 {
     codeArgs.Insert(index, newArg.CodeArgument);
 }
コード例 #7
0
 public bool Contains(DynaArgument thisArg)
 {
     return codeArgs.Contains(thisArg.CodeArgument);
 }
コード例 #8
0
 //***************************************************************************
 // Public Methods
 // 
 public void Add(DynaArgument newArg)
 {
     codeArgs.Add(newArg.CodeArgument);
 }
コード例 #9
0
 public void Remove(DynaArgument oldArg)
 {
     codeArgs.Remove(oldArg.CodeArgument);
 }
コード例 #10
0
 public int IndexOf(DynaArgument thisArg)
 {
     return(codeArgs.IndexOf(thisArg.CodeArgument));
 }
コード例 #11
0
 public DynaArgumentCollection(DynaArgument[] args)
     : this()
 {
     foreach (DynaArgument arg in args)
         codeArgs.Add(arg.CodeArgument);
 }
コード例 #12
0
 public bool Contains(DynaArgument thisArg)
 {
     return(codeArgs.Contains(thisArg.CodeArgument));
 }
コード例 #13
0
 public void Insert(int index, DynaArgument newArg)
 {
     codeArgs.Insert(index, newArg.CodeArgument);
 }
コード例 #14
0
 public void Remove(DynaArgument oldArg)
 {
     codeArgs.Remove(oldArg.CodeArgument);
 }
コード例 #15
0
 //***************************************************************************
 // Public Methods
 //
 public void Add(DynaArgument newArg)
 {
     codeArgs.Add(newArg.CodeArgument);
 }
コード例 #16
0
 /// <summary>
 /// Adds a member expression parameter to this DynaMember object.
 /// </summary>
 /// <param name="arg">An AosDynaArguement object containing the values for this parameter.</param>
 public void AddParameter(DynaArgument arg)
 {
     AddParameter(arg.ArgumentName, arg.DataType);
 }