attribute.java

来自「plugin for eclipse」· Java 代码 · 共 48 行

JAVA
48
字号
/*
 * Created on Jun 27, 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 Attribute {
	TNode defNode;
	/**
	 * @return Returns the defNode.
	 */
	public TNode getDefNode() {
		return defNode;
	}
	/**
	 * @param defNode The defNode to set.
	 */
	public void setDefNode(TNode defNode) {
		this.defNode = defNode;
	}
	/**
	 * @param o
	 */
	public void outline(Outline o) {
		NesCEmitter e = new NesCEmitter(o);

		try {
			e.attributeDecl(this.defNode);
		} catch(RecognitionException ex) {
			o.append("/* Exception while printing out statement: ");
			//ex.printStackTrace(new PrintWriter(o));
			o.append(" */");
		}		
	}
}

⌨️ 快捷键说明

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