Skip to content

Commit 6df9259

Browse files
More constructors. (#126)
1 parent 3b93d46 commit 6df9259

6 files changed

Lines changed: 48 additions & 18 deletions

File tree

zpoi/src/org/zkoss/poi/ss/formula/eval/AreaEvalBase.java

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,22 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2424
*/
2525
public abstract class AreaEvalBase implements AreaEval {
2626

27-
private final int _firstColumn;
28-
private final int _firstRow;
29-
private final int _lastColumn;
30-
private final int _lastRow;
31-
private final int _nColumns;
32-
private final int _nRows;
27+
private int _firstColumn;
28+
private int _firstRow;
29+
private int _lastColumn;
30+
private int _lastRow;
31+
private int _nColumns;
32+
private int _nRows;
3333

34-
private final boolean _firstColRel;
35-
private final boolean _lastColRel;
36-
private final boolean _firstRowRel;
37-
private final boolean _lastRowRel;
34+
private boolean _firstColRel;
35+
private boolean _lastColRel;
36+
private boolean _firstRowRel;
37+
private boolean _lastRowRel;
38+
39+
AreaEvalBase()
40+
{
41+
42+
}
3843

3944
// protected AreaEvalBase(int firstRow, int firstColumn, int lastRow, int lastColumn) {
4045
// this(firstRow, firstColumn, lastRow, lastColumn, false, false, false, false);

zpoi/src/org/zkoss/poi/ss/formula/eval/ArrayEval.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@
2626
*/
2727
public class ArrayEval implements AreaEval {
2828

29-
private final SheetRefEvaluator _evaluator; //ZSS-962
29+
private SheetRefEvaluator _evaluator; //ZSS-962
3030

31-
private final int _firstRow;
32-
private final int _firstCol;
33-
private final int _lastRow;
34-
private final int _lastCol;
31+
private int _firstRow;
32+
private int _firstCol;
33+
private int _lastRow;
34+
private int _lastCol;
3535

36-
private final ValueEval[][] _values; //[row][col] -> value
36+
private ValueEval[][] _values; //[row][col] -> value
37+
38+
ArrayEval()
39+
{
40+
41+
}
3742

3843
private ArrayEval(Object[][] srcvalues, int firstRow, int firstColumn, int lastRow, int lastColumn, SheetRefEvaluator evaluator) {
3944
_evaluator = evaluator; //ZSS-962

zpoi/src/org/zkoss/poi/ss/formula/eval/BoolEval.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public final class BoolEval implements NumericValueEval, StringValueEval, Hyperl
3131

3232
public static final BoolEval TRUE = new BoolEval(true);
3333

34+
BoolEval()
35+
{
36+
37+
}
38+
3439
/**
3540
* Convenience method for the following:<br/>
3641
* <code>(b ? BoolEval.TRUE : BoolEval.FALSE)</code>

zpoi/src/org/zkoss/poi/ss/formula/eval/MultipleEval.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ public final class MultipleEval implements ValueEval {
1010
private int _width;
1111
private int _height;
1212

13+
MultipleEval()
14+
{
15+
16+
}
17+
1318
public MultipleEval(int width, int height, AreaEval value) {
1419
_value = value;
1520
_width = width;

zpoi/src/org/zkoss/poi/ss/formula/eval/NumberEval.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ public final class NumberEval implements NumericValueEval, StringValueEval, Hype
3434

3535
public static final NumberEval ZERO = new NumberEval(0);
3636

37-
private final double _value;
37+
private double _value;
3838
private String _stringValue;
3939

40+
NumberEval()
41+
{
42+
43+
}
44+
4045
public NumberEval(Ptg ptg) {
4146
if (ptg == null) {
4247
throw new IllegalArgumentException("ptg must not be null");

zpoi/src/org/zkoss/poi/ss/formula/eval/StringEval.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ public final class StringEval implements StringValueEval, HyperlinkEval {
2929

3030
public static final StringEval EMPTY_INSTANCE = new StringEval("");
3131

32-
private final String _value;
32+
private String _value;
33+
34+
StringEval()
35+
{
36+
37+
}
3338

3439
public StringEval(Ptg ptg) {
3540
this(((StringPtg) ptg).getValue());

0 commit comments

Comments
 (0)