typespecifier.java
来自「plugin for eclipse」· Java 代码 · 共 79 行
JAVA
79 行
/*
* Created on May 4, 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.ObjectTreeBuilderContext;
import isis.anp.common.TNode;
/**
* @author sallai
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class TypeSpecifier {
TNode defNode = null;
TNode specifierNameNode = null;
String specifierName = null;
ObjectTreeBuilderContext ctx;
public TypeSpecifier(ObjectTreeBuilderContext ctx) {
this.ctx = ctx;
}
/**
* @return Returns the defNode.
*/
public TNode getDefNode() {
return defNode;
}
/**
* @param defNode The defNode to set.
*/
public void setDefNode(TNode defNode) {
this.defNode = defNode;
}
public String toString() {
return getDefNode().getText();
}
/**
* @return Returns the specifierName.
*/
public String getSpecifierName() {
return specifierName;
}
/**
* @param specifierName The specifierName to set.
*/
public void setSpecifierName(String specifierName) {
this.specifierName = specifierName;
if(specifierNameNode != null) {
specifierNameNode.setText(specifierName);
}
}
/**
* @return Returns the specifierNameNode.
*/
public TNode getSpecifierNameNode() {
return specifierNameNode;
}
/**
* @param specifierNameNode The specifierNameNode to set.
*/
public void setSpecifierNameNode(TNode specifierNameNode) {
this.specifierNameNode = specifierNameNode;
this.specifierName = specifierNameNode.getText();
}
public ObjectTreeBuilderContext getContext() {
return ctx;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?