All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.snapscript.parse.NumberToken Maven / Gradle / Ivy


package org.snapscript.parse;

public class NumberToken implements Token {
   
   private final Number value;
   private final Line line;
   private final short type;

   public NumberToken(Number value) {
      this(value, null, 0);
   }
   
   public NumberToken(Number value, Line line, int type) {
      this.type = (short)type;
      this.value = value;
      this.line = line;
   }
   
   @Override
   public Number getValue() {
      return value;
   }
   
   @Override
   public Line getLine(){ 
      return line;
   }
   
   @Override
   public short getType() {
      return type;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy