mirror of https://github.com/apache/poi.git
made parenthesis work in and out
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0c69d88afe
commit
73ef8f6184
|
@ -72,6 +72,20 @@ public class ParenthesisPtg
|
|||
private final static int SIZE = 1;
|
||||
public final static byte sid = 0x15;
|
||||
|
||||
public ParenthesisPtg()
|
||||
{
|
||||
}
|
||||
|
||||
public ParenthesisPtg(byte [] data, int offset)
|
||||
{
|
||||
|
||||
// doesn't need anything
|
||||
}
|
||||
|
||||
protected ParenthesisPtg(String formula, int offset) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void writeBytes(byte [] array, int offset)
|
||||
{
|
||||
|
@ -103,16 +117,9 @@ public class ParenthesisPtg
|
|||
return "";
|
||||
}
|
||||
|
||||
public void manipulate(List source, List results, int pos) {
|
||||
}
|
||||
|
||||
public String toFormulaString(String[] operands) {
|
||||
return "("+operands[0]+")";
|
||||
}
|
||||
|
||||
public int getPrecedence() {
|
||||
return 2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -210,9 +210,9 @@ public abstract class Ptg
|
|||
retval = new ValueReferencePtg(data, offset);
|
||||
break;
|
||||
|
||||
// case ParenthesisPtg.sid :
|
||||
// retval = new ParenthesisPtg(data, offset);
|
||||
// break;
|
||||
case ParenthesisPtg.sid :
|
||||
retval = new ParenthesisPtg(data, offset);
|
||||
break;
|
||||
|
||||
case ValueVariableFunctionPtg.sid :
|
||||
retval = new ValueVariableFunctionPtg(data, offset);
|
||||
|
|
Loading…
Reference in New Issue