dmolony-DiskBrowser/src/com/bytezone/diskbrowser/visicalc/IsError.java

24 lines
867 B
Java
Raw Permalink Normal View History

2016-03-10 02:39:23 +00:00
package com.bytezone.diskbrowser.visicalc;
2020-02-10 11:05:40 +00:00
// -----------------------------------------------------------------------------------//
2017-03-23 13:30:41 +00:00
class IsError extends BooleanFunction
2020-02-10 11:05:40 +00:00
// -----------------------------------------------------------------------------------//
2016-03-10 02:39:23 +00:00
{
2020-02-10 11:05:40 +00:00
// ---------------------------------------------------------------------------------//
IsError (Cell cell, String text)
// ---------------------------------------------------------------------------------//
2016-03-10 02:39:23 +00:00
{
super (cell, text);
2016-03-10 02:39:23 +00:00
2017-03-23 13:30:41 +00:00
assert text.startsWith ("@ISERROR(") : text;
2017-03-19 01:49:40 +00:00
}
2020-02-10 11:05:40 +00:00
// ---------------------------------------------------------------------------------//
2016-03-10 02:39:23 +00:00
@Override
2017-03-20 01:45:14 +00:00
public void calculate ()
2020-02-10 11:05:40 +00:00
// ---------------------------------------------------------------------------------//
2016-03-10 02:39:23 +00:00
{
2017-03-20 01:45:14 +00:00
source.calculate ();
2017-03-23 13:30:41 +00:00
bool = source.getValueResult () == ValueResult.ERROR;
2016-03-10 02:39:23 +00:00
}
}