first commit
This commit is contained in:
28
hrmsEjb/jxl/biff/formula/Operator.java
Normal file
28
hrmsEjb/jxl/biff/formula/Operator.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package jxl.biff.formula;
|
||||
|
||||
import java.util.Stack;
|
||||
|
||||
abstract class Operator extends ParseItem {
|
||||
private ParseItem[] operands = new ParseItem[0];
|
||||
|
||||
protected void setOperandAlternateCode() {
|
||||
for (int i = 0; i < this.operands.length; i++)
|
||||
this.operands[i].setAlternateCode();
|
||||
}
|
||||
|
||||
protected void add(ParseItem n) {
|
||||
n.setParent(this);
|
||||
ParseItem[] newOperands = new ParseItem[this.operands.length + 1];
|
||||
System.arraycopy(this.operands, 0, newOperands, 0, this.operands.length);
|
||||
newOperands[this.operands.length] = n;
|
||||
this.operands = newOperands;
|
||||
}
|
||||
|
||||
public abstract void getOperands(Stack paramStack);
|
||||
|
||||
protected ParseItem[] getOperands() {
|
||||
return this.operands;
|
||||
}
|
||||
|
||||
abstract int getPrecedence();
|
||||
}
|
Reference in New Issue
Block a user