org.millscript.office.spreadsheet.formula.action
Class AsNumberAction

java.lang.Object
  extended by org.millscript.millscript.action.Action
      extended by org.millscript.millscript.action.UnaryOpAction
          extended by org.millscript.office.spreadsheet.formula.action.AsNumberAction
All Implemented Interfaces:
org.millscript.commons.alert.AlertOrigin

public class AsNumberAction
extends org.millscript.millscript.action.UnaryOpAction


Constructor Summary
AsNumberAction(org.millscript.millscript.action.Action a)
          Creates a new NullIsZero action to transform the result of the specified action into zero if its result is null.
 
Method Summary
 java.lang.Object perform(java.lang.Object x)
           
static java.lang.Number toNumber(java.lang.Object x)
           
 
Methods inherited from class org.millscript.millscript.action.UnaryOpAction
action
 
Methods inherited from class org.millscript.millscript.action.Action
act, act1, getLineNumber, getOrigin, predAct, setContext, setLineNumber, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsNumberAction

public AsNumberAction(org.millscript.millscript.action.Action a)
Creates a new NullIsZero action to transform the result of the specified action into zero if its result is null.

Parameters:
a - the action whose result to transform to zero if it is null
Method Detail

toNumber

public static final java.lang.Number toNumber(java.lang.Object x)

perform

public java.lang.Object perform(java.lang.Object x)
Specified by:
perform in class org.millscript.millscript.action.UnaryOpAction
See Also:
UnaryOpAction.perform(java.lang.Object)


Copyright © 2006-2007 Open World Ltd. All Rights Reserved.