using System;
using Parser.Global.LexerSpace;

namespace Parser.MSSql.LexerSpace
{
	[Serializable]
	public class TokenNumber : TokenBase
	{
		private NumberTokenTypeEnum _numberTokenType;

		public NumberTokenTypeEnum NumberTokenType
		{
			get
			{ 
				return _numberTokenType;
			}
		}
		public TokenNumber(string content, int position, int sourceLength, NumberTokenTypeEnum numberTokenType) : base(content, position, sourceLength)
		{
			_numberTokenType = numberTokenType;
		}
		public override IToken Copy()
		{
			return new TokenNumber(_content, _sourcePosition, _sourceLength, _numberTokenType);
		}
		public override string ToString()
		{
			return _content;
		}
	}

}
