bzr branch
http://gegoxaren.bato24.eu/bzr/vqdr/trunk
|
1
by Gustav Hartvigsson
* Initial code - far from done |
1 |
namespace VQDR.Expression { |
2 |
public class ConstantValueToken : ValueToken { |
|
3 |
|
|
4 |
construct { |
|
|
14
by Gustav Hartvigsson
* Use enum instead of static values for the priority of operations. |
5 |
this.priority = Prio.VALUE; |
|
1
by Gustav Hartvigsson
* Initial code - far from done |
6 |
} |
7 |
|
|
|
12.1.1
by Gustav Hartvigsson
* Switch to using FastNumber instead of something else. |
8 |
public ConstantValueToken (long val, int position) { |
|
1
by Gustav Hartvigsson
* Initial code - far from done |
9 |
base (position); |
|
12.1.1
by Gustav Hartvigsson
* Switch to using FastNumber instead of something else. |
10 |
this.result_value.number = val; |
11 |
this.result_min_value.number = val; |
|
12 |
this.result_max_value.number = val; |
|
|
1
by Gustav Hartvigsson
* Initial code - far from done |
13 |
} |
14 |
|
|
15 |
protected override void evaluate_self (Context instance) throws GLib.Error { |
|
16 |
this.result_string = this.result_value.to_string (); |
|
17 |
} |
|
18 |
|
|
19 |
} |
|
20 |
}
|