⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 token.java

📁 实验软装置(基于表达式的计算器ExprEval) 很不错的 有帮助于学习提高
💻 JAVA
字号:
package scanner;

public class Token extends Symbol{

	/**
	 * value of token
	 */
	double value;
	/**
	 * priority of token
	 */
	int priority;
	/**
	 * type of token
	 */
	int type;
	
	/**
	 * constructor
	 * @param Name name of token
	 * @param Value value of token
	 * @param Type type of token
	 * @param Priority priority of token
	 */
	public Token(String Name,double Value,int Type,int Priority)
	{
		super(Name);
		value=Value;
		priority=Priority;
		type=Type;
	}
	
	/**
	 * get token type
	 * @return an int indicating type of token
	 */
	public int getType(){
		return type;
		
	}
	/**
	 * get the priority of token
	 * @return priority of token
	 */
	public int getPriority()
	{
		return priority;
	}
	/**
	 * get the value of token
	 * @return value of token
	 */
	public double getValue(){
		return value;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -