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 { |
|
5 |
this.priority = PRIO_VALUE; |
|
6 |
} |
|
7 |
|
|
8 |
public ConstantValueToken (long value, int position) { |
|
9 |
base (position); |
|
10 |
this.result_value = value; |
|
11 |
this.result_min_value = value; |
|
12 |
this.result_max_value = value; |
|
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 |
}
|