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

📄 action.java

📁 SkipOOMiniJOOL教学语言的编译器前端
💻 JAVA
字号:
package edu.ustc.cs.minijool.parser.ast;/** * A node representing code for an action. * @author manu_s * */public class Action extends DPASTNode {	/**	 * an empty action	 */	public static final Action NONE = new Action();		/**	 * the code for this action	 */	private final String actionCode;		public Action(String actionCode) {		this.actionCode = actionCode;	}		private Action() {		this.actionCode = "";	}		    /**     * @return the code for this action     */    public String getActionCode() {    	if (this != NONE) {    		return actionCode;    	} else {    		throw new RuntimeException();    	}    }    /* (non-Javadoc)     * @see edu.berkeley.cs164.parser.ast.DCASTNode#accept(edu.berkeley.cs164.parser.ast.DCVisitor)     */    public void accept(DPVisitor v) {    	v.visit(this);    }}

⌨️ 快捷键说明

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