1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
namespace VQDR.Expression {
public class ConstantValueToken : ValueToken {
construct {
this.priority = Prio.VALUE;
mandatory_num_child = 0;
}
public ConstantValueToken (int64 val, int32 position) {
base (position);
this.result_value.number = val;
this.result_min_value.number = val;
this.result_max_value.number = val;
}
protected override void evaluate_self (Context instance) throws GLib.Error {
this.result_string = this.result_value.to_string ();
}
}
}
|