expression.java
来自「plugin for eclipse」· Java 代码 · 共 46 行
JAVA
46 行
/*
* Created on May 9, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package isis.anp.nesc.ot;
import isis.anp.common.TNode;
import isis.anp.nesc.NesCEmitter;
import antlr.RecognitionException;
/**
* @author sallai
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class Expression {
TNode defNode;
public TNode getDefNode() {
return defNode;
}
public void setDefNode(TNode defNode) {
this.defNode = defNode;
}
public void outline(Outline o) {
NesCEmitter e = new NesCEmitter(o);
// o.addTabs();
if(this.getDefNode()!=null) {
try {
e.expr(this.defNode);
} catch(RecognitionException ex) {
o.append("/* Exception while printing out expression: ");
//ex.printStackTrace(new PrintWriter(o));
o.append(" */");
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?