public class DivFunction extends FunctionNode
GroupingExpression
. It evaluates to a number that equals the result
of dividing the results of all arguments in the order they were given to the constructor (divide first argument by
second, result by third, ...).Constructor and Description |
---|
DivFunction(GroupingExpression arg1,
GroupingExpression arg2,
GroupingExpression... argN)
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
DivFunction |
copy()
Returns a deep copy of this
|
static DivFunction |
newInstance(List<GroupingExpression> args)
Constructs a new instance of this class from a list of arguments.
|
args, asList, asList, asList, getArg, getNumArgs, iterator, resolveLevel, visit
asImage, asString, getLevel, getLevelOrNull, setLabel
getImage, getLabel, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DivFunction(GroupingExpression arg1, GroupingExpression arg2, GroupingExpression... argN)
arg1
- The first compulsory argument, must evaluate to a number.arg2
- The second compulsory argument, must evaluate to a number.argN
- The optional arguments, must evaluate to a number.public DivFunction copy()
GroupingExpression
copy
in class GroupingExpression
public static DivFunction newInstance(List<GroupingExpression> args)
args
- The arguments to pass to the constructor.IllegalArgumentException
- Thrown if the number of arguments is less than 2.Copyright © 2018. All rights reserved.