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:
Andrew C. Oliver 2002-04-28 15:52:58 +00:00
parent 9482fd0115
commit fd604cb56c
8 changed files with 5 additions and 35 deletions

View File

@ -141,11 +141,6 @@ public class AddPtg
return buffer.toString();
}
public int getPrecedence() {
return 5;
}
public int getStringLength() {
return 1;
}

View File

@ -120,10 +120,6 @@ public class DividePtg
return buffer.toString();
}
public int getPrecedence() {
return 4;
}
public int getStringLength() {
return 1;
}

View File

@ -27,10 +27,6 @@ public class DummyFunctionPtg extends OperationPtg {
numOperands = pNumOperands;
}
public int getPrecedence() {
return 1;
}
public int getType() {
return -1;
}

View File

@ -155,10 +155,6 @@ public class IntPtg
return (parseString(formula,pos) != null);
}
public int getPrecedence() {
return 5;
}
public int getStringLength() {
return strlen;
}

View File

@ -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))) {

View File

@ -77,8 +77,6 @@ public abstract class OperationPtg extends Ptg
public abstract String toFormulaString(String[] operands);
public abstract int getPrecedence();
public abstract int getNumberOfOperands();
/**

View File

@ -110,10 +110,6 @@ public class PowerPtg
return "^";
}
public int getPrecedence() {
return 3;
}
public String toFormulaString(Ptg [] operands)
{
StringBuffer buffer = new StringBuffer();

View File

@ -120,9 +120,6 @@ public class SubtractPtg
return buffer.toString();
}
public int getPrecedence() {
return 5;
}
public int getStringLength() {
return 1;