www.pudn.com > Operate2.rar > Bracket.java
package Expression;
public class Bracket {
private int type;//0为左括号,1为右括号,为2为双引号
private int position;//括号、引号的位置左括号为在值之前或运算符、关键字之后,右括号为在值之后或运算符、关键字之前;
public Bracket(int type ,int position){
this.type = type;
this.position = position;
}
public int getPosition() {
return position;
}
public void setPosition(int position) {
this.position = position;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
}