2017-03-17 23:57:48 +00:00
|
|
|
package com.bytezone.diskbrowser.visicalc;
|
|
|
|
|
2017-03-20 01:45:14 +00:00
|
|
|
public class False extends ConstantFunction
|
2017-03-17 23:57:48 +00:00
|
|
|
{
|
2017-03-18 08:33:40 +00:00
|
|
|
False (Cell cell, String text)
|
2017-03-17 23:57:48 +00:00
|
|
|
{
|
2017-03-18 08:33:40 +00:00
|
|
|
super (cell, text);
|
2017-03-17 23:57:48 +00:00
|
|
|
|
2017-03-18 09:21:11 +00:00
|
|
|
assert text.equals ("@FALSE") : text;
|
|
|
|
|
2017-03-17 23:57:48 +00:00
|
|
|
value = 0;
|
2017-03-18 00:24:05 +00:00
|
|
|
valueType = ValueType.VALUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isBoolean ()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getText ()
|
|
|
|
{
|
|
|
|
return value == 0 ? "FALSE" : "TRUE";
|
2017-03-17 23:57:48 +00:00
|
|
|
}
|
|
|
|
}
|