statement.java
来自「plugin for eclipse」· Java 代码 · 共 83 行
JAVA
83 行
/*
* Created on May 25, 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 Statement {
TNode defNode;
TNode atomicNode;
Object parent;
/**
* @return Returns the defNode.
*/
public TNode getDefNode() {
return defNode;
}
/**
* @param defNode The defNode to set.
*/
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.statement(this.defNode);
} catch(RecognitionException ex) {
o.append("/* Exception while printing out statement: ");
//ex.printStackTrace(new PrintWriter(o));
o.append(" */");
}
}
}
/**
* @return Returns the atomicNode.
*/
public TNode getAtomicNode() {
return atomicNode;
}
/**
* @param atomicNode The atomicNode to set.
*/
public void setAtomicNode(TNode atomicNode) {
this.atomicNode = atomicNode;
}
public boolean isAtomic() {
return atomicNode != null;
}
/**
* @param statement
*/
public void setParent(Object parent) {
this.parent = parent;
}
/**
* @return Returns the parent.
*/
public Object getParent() {
return parent;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?