rollign out some of my stuff. Like Avik's stuff better. (for formulas)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9482fd0115
commit
fd604cb56c
@ -141,11 +141,6 @@ public class AddPtg
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
|
||||
public int getPrecedence() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
public int getStringLength() {
|
||||
return 1;
|
||||
}
|
||||
|
@ -120,10 +120,6 @@ public class DividePtg
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
public int getPrecedence() {
|
||||
return 4;
|
||||
}
|
||||
|
||||
public int getStringLength() {
|
||||
return 1;
|
||||
}
|
||||
|
@ -27,10 +27,6 @@ public class DummyFunctionPtg extends OperationPtg {
|
||||
numOperands = pNumOperands;
|
||||
}
|
||||
|
||||
public int getPrecedence() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return -1;
|
||||
}
|
||||
|
@ -155,10 +155,6 @@ public class IntPtg
|
||||
return (parseString(formula,pos) != null);
|
||||
}
|
||||
|
||||
public int getPrecedence() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
public int getStringLength() {
|
||||
return strlen;
|
||||
}
|
||||
|
@ -146,10 +146,6 @@ public class MultiplyPtg
|
||||
standardBinaryManipulation(source, results, pos);
|
||||
}
|
||||
|
||||
public int getPrecedence() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
public static boolean isNextStringToken(String formula, int pos) {
|
||||
boolean retval = false;
|
||||
while (pos < formula.length() && Character.isWhitespace(formula.charAt(pos))) {
|
||||
|
@ -77,8 +77,6 @@ public abstract class OperationPtg extends Ptg
|
||||
|
||||
public abstract String toFormulaString(String[] operands);
|
||||
|
||||
public abstract int getPrecedence();
|
||||
|
||||
public abstract int getNumberOfOperands();
|
||||
|
||||
/**
|
||||
|
@ -110,10 +110,6 @@ public class PowerPtg
|
||||
return "^";
|
||||
}
|
||||
|
||||
public int getPrecedence() {
|
||||
return 3;
|
||||
}
|
||||
|
||||
public String toFormulaString(Ptg [] operands)
|
||||
{
|
||||
StringBuffer buffer = new StringBuffer();
|
||||
|
@ -120,9 +120,6 @@ public class SubtractPtg
|
||||
return buffer.toString();
|
||||
}
|
||||
|
||||
public int getPrecedence() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
public int getStringLength() {
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user