/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/value/constant_value_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2020-06-07 18:48:24 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20200607184824-jf14f7a1b1di2i2q
* Initial code - far from done

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}