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

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

There is a newer version: 1.4.6
Show newest version
package org.snapscript.parse;

public class CharacterToken implements Token{
   
   private final Character value;
   private final Line line;
   private final short type;
   
   public CharacterToken(Character value) {
      this(value, null, 0);
   }
   
   public CharacterToken(Character value, Line line, int type) {
      this.type = (short)type;
      this.value = value;
      this.line = line;
   }
   
   @Override
   public Character getValue() {
      return value;
   }
   
   @Override
   public Line getLine() {
      return line;
   }
   
   @Override
   public short getType() {
      return type;
   }
   
   @Override
   public String toString(){
      return String.valueOf(value);
   }   
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy