public class CalcArgs extends ArrayList<Term<?>>
| Modifier and Type | Class and Description |
|---|---|
static class |
CalcArgs.DoubleEvaluator
An abstract pre-defined evaluator that produces a double value from the expression.
|
static interface |
CalcArgs.Evaluator<T>
A generic evaluator that is able to obtain a resulting value of the given type
from the expressions.
|
static class |
CalcArgs.StringEvaluator
A pre-defined evaluator that produces a string representation of the expression.
|
| Modifier and Type | Field and Description |
|---|---|
static CalcArgs.StringEvaluator |
stringEvaluator |
modCount| Modifier and Type | Method and Description |
|---|---|
<T> T |
evaluate(CalcArgs.Evaluator<T> eval) |
TermNumeric.Unit.Type |
getType() |
boolean |
isInt() |
boolean |
isValid() |
protected void |
scanArguments(List<Term<?>> args) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic static final CalcArgs.StringEvaluator stringEvaluator
public TermNumeric.Unit.Type getType()
public boolean isInt()
public boolean isValid()
public <T> T evaluate(CalcArgs.Evaluator<T> eval) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.