public abstract class BooleanMathExpression extends org.vesalainen.grammar.math.DoubleMathStack implements java.util.function.BooleanSupplier
| Constructor and Description |
|---|
BooleanMathExpression(String expression,
boolean degrees)
Creates DoubleMathExpression for given expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAsBoolean() |
Set<String> |
getVariables()
Returns immutable set of variable identifiers.
|
asType, convertFrom, convertTo, findMethod, getField, getMethod, getParameters, getReturnType, getVariable, invoke, isRadianArgs, isRadianReturn, loadArray, loadArrayItem, loadField, loadVariable, number, pow, setIndexabs, acos, add, and, asin, atan, atan2, cbrt, ceil, checkAnd, checkOr, clear, cos, cosh, div, dup, eq, exp, expm1, floor, ge, get, gt, hypot, isEmpty, le, log, log10, log1p, lt, max, min, mod, mul, ne, neg, not, or, peek, pop, pow, push, sin, sinh, size, sqrt, subtract, tan, tanh, toDegrees, toRadiansclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic BooleanMathExpression(String expression, boolean degrees)
If degrees is true parameters to sin, cos and tan are converted to radians before call. Also return value of asin, acos and atan is converted to degrees.
expression - degrees - public boolean getAsBoolean()
getAsBoolean in interface java.util.function.BooleanSupplierCopyright © 2017. All rights reserved.