module.java
来自「plugin for eclipse」· Java 代码 · 共 75 行
JAVA
75 行
/*
* Created on May 8, 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 Module extends Component {
ModuleImplementation implementation;
// parent
NesCModuleFile moduleFile;
public ModuleImplementation getImplementation() {
return implementation;
}
public void setImplementation(ModuleImplementation implementation) {
this.implementation = implementation;
if(implementation!=null) {
implementation.setModule(this);
}
}
public void outline(Outline o) {
o.addTabs();
o.append("module");
o.ensureSpace();
o.append(getName());
o.ensureSpace();
o.append("{\n");
super.outline(o);
o.addTabs();
o.append("}\n");
//o.incTabs();
getImplementation().outline(o);
//o.decTabs();
o.append("\n");
}
/**
* @param file
*/
public void setModuleFile(NesCModuleFile file) {
this.moduleFile = file;
}
/**
* @return Returns the moduleFile.
*/
public NesCModuleFile getModuleFile() {
return moduleFile;
}
/**
* Alias for getModuleFile().
* @return the module file
*/
public NesCModuleFile getParent() {
return getModuleFile();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?