nescinterfacefile.java
来自「plugin for eclipse」· Java 代码 · 共 53 行
JAVA
53 行
/*
* 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;
/**
* @author sallai
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class NesCInterfaceFile extends NesCFile {
Interface nesCInterface;
/**
* @return Returns the nesCInterface.
*/
public Interface getInterface() {
return nesCInterface;
}
/**
* @param nesCInterface The nesCInterface to set.
*/
public void setInterface(Interface nesCInterface) {
this.nesCInterface = nesCInterface;
if(nesCInterface!=null) {
nesCInterface.setInterfaceFile(this);
}
}
public void outline(Outline o) {
o.addTabs();
o.append("/* NesC Interface File: " + this.getFileName() + " */\n");
o.incTabs();
// Iterator i = this.includeFiles.iterator();
// while (i.hasNext()) {
// NesCIncludeFile inc = (NesCIncludeFile) i.next();
// o.addTabs();
// o.append("includes ");
// o.append(inc.getNesCName());
// o.append(";\n");
// // inc.outline(o);
// }
super.outline(o);
getInterface().outline(o);
o.decTabs();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?