teminal.java
来自「脚本开发工具和源代码,用于J2me中RPG游戏的脚本开发和执行,相当好用的一套工」· Java 代码 · 共 67 行
JAVA
67 行
package scriptedit.data;
/**
* <p>Title: Teminal</p>
* <p>Description: 2006年3月30日</p>
* <p>Copyright: CoCoMo Copyright (c) 2006</p>
* <p>Company: 9you</p>
* @author 郭昉
* @version 1.1
*/
public class Teminal {
public static final String TRUE = "true";
public static final String FALSE = "false";
public static final int IDENTIFER = 10; //常量 变量 函数
public static final int INTEGER = 11; //整型
public static final int STRING = 12; //字符型
public static final int BOOLEAN = 13; //布尔型
public static final int MSYMBOL = 14; //标记符号型 ( )
public static final int OSYMBOL = 15; //操作符号型 > < == >= <=
public static final int RSYMBOL = 16; //关系符号型 && ||
public static final int SCRIPT = 17; //脚本型
private int type;
private String value;
private int line; //仅作调试用
public Teminal() {}
public Teminal(int type, String value) {
this.type = type;
this.value = value;
}
public void setType(int type) {
this.type = type;
}
public int getType() {
return type;
}
public void setValue(String value) {
this.value = value;
}
public void setValue(int value) {
this.value = String.valueOf(value);
}
public String getValue() {
return value;
}
public int getIntValue() {
return Integer.parseInt(value);
}
public void setLine(int line) {
this.line = line;
}
public int getLine() {
return line;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?