action.java
来自「SkipOOMiniJOOL教学语言的编译器前端」· Java 代码 · 共 47 行
JAVA
47 行
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 + =
减小字号Ctrl + -
显示快捷键?