Datei: NDODLL/NDOql/Expressions/FunctionExpression.cs

Last Commit (28c8c45)
1 -- File didn't exist --
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
New Commit (b47b95e)
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace NDOql.Expressions
6 {
7 ····/// <summary>
8 ····/// Represents a function expression
9 ····/// </summary>
10 ····public class FunctionExpression : OqlExpression
11 ····{
12 ········/// <summary>
13 ········/// Construcror
14 ········/// </summary>
15 ········/// <param name="value"></param>
16 ········/// <param name="line"></param>
17 ········/// <param name="col"></param>
18 ········public FunctionExpression(object value, int line, int col) : base (line, col)
19 ········{
20 ············base.Value = value;
21 ············base.ExpressionType = ExpressionType.Unknown;
22 ············HasBrackets = false;
23 ········}
24
25 ········/// <summary>
26 ········/// Clones an FunctionExpression object
27 ········/// </summary>
28 ········public override OqlExpression DeepClone
29 ········{
30 ············get
31 ············{
32 ················return new FunctionExpression(Value, Line, Column);
33 ············}
34 ········}
35
36 ········/// <inheritdoc/>>
37 ········public override string ToString()
38 ········{
39 ············StringBuilder sb = new StringBuilder( (string)Value );
40 ············var parList = Children[0];
41 ············sb.Append( parList.ToString() );
42 ············return sb.ToString();
43 ········}
44
45 ········/// <inheritdoc/>>
46 ········public override OqlExpression Simplify()
47 ········{
48 ············return this;
49 ········}
50 ····}
51 }
52