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

📄 output.java.svn-base

📁 北航编译原理课程设计成果——一个扩充的C0文法编译器
💻 SVN-BASE
字号:
package cn.edu.buaa.scse.liyi.compile.types;

/**
 * 
 * @author liyi
 */
public class Output
{
	private int line;
	private int type;
	private String word;
    
	/**
	 * 词法输出类构造方法
	 */
	public Output()
	{
		this.line=0;
		this.type=-1;
		this.word=null;
	}
	
	/**
	 * 词法输出类构造方法
	 * @param lop
	 */
	public Output(Output lop)
	{
		
		this.type=lop.getType();
		this.word=lop.getWord();
		this.line=lop.getLine();
	}
	
	public void setLine(int line)
	{
		this.line=line;
	}
	public void setType(int type)
	{
		this.type=type;
	}
	public void setWord(String word)
	{
		this.word=word;
	}
	
	public int getType()
	{
		return this.type;
	}
	public String getWord()
	{
		return this.word;
	}
	public int getLine()
	{
		return this.line;
	}
	
	/**
	 * 输出显示
	 * @Override
	 */
	public String toString()
	{
		return (getWord()+'['+getType()+']');
	}

}

⌨️ 快捷键说明

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