public class DefaultStackEvaluator extends AbstractStandardEvaluator implements StandardStackEvaluator
standard operators with
common built-in types (i.e.: Booleans, Strings and
Numbers). Does not handle short circuiting of ternary expressions.
It is recommended to use DefaultTreeEvaluator instead, unless your
expression's syntax tree is so deep it exceeds the maximum recursion depth.
For an evaluator that supports ternary
short-circuiting.| Constructor and Description |
|---|
DefaultStackEvaluator() |
DefaultStackEvaluator(ExpressionParser parser) |
add, add, add, add, add, add, add, add, bitwiseAnd, bitwiseAnd, bitwiseAnd, bitwiseAnd, bitwiseOr, bitwiseOr, bitwiseOr, bitwiseOr, braces, brackets, colon, complement, complement, complement, div, div, div, div, div, div, div, dot, dotDiv, dotMul, dotPow, dotRightDiv, dotTranspose, equal, function, greaterThan, greaterThan, greaterThanOrEqual, greaterThanOrEqual, instanceOf, leftShift, leftShift, leftShift, leftShift, lessThan, lessThan, lessThanOrEqual, lessThanOrEqual, logicalAnd, logicalAnd, logicalOr, logicalOr, mod, mod, mod, mod, mod, mod, mod, mul, mul, mul, mul, mul, mul, mul, neg, neg, neg, neg, neg, neg, neg, not, not, notEqual, parens, pos, pos, pos, pos, pos, pow, pow, pow, pow, question, rightDiv, rightShift, rightShift, rightShift, rightShift, sub, sub, sub, sub, sub, sub, sub, transpose, unsignedRightShift, unsignedRightShift, unsignedRightShiftget, getParser, isStrict, set, setAll, setStrictclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteadd, addAssign, andAssign, assign, bitwiseAnd, bitwiseOr, braces, brackets, colon, complement, div, divAssign, dot, dotDiv, dotDivAssign, dotMul, dotPow, dotPowAssign, dotRightDiv, dotRightDivAssign, dotTranspose, equal, execute, function, greaterThan, greaterThanOrEqual, instanceOf, leftShift, leftShiftAssign, lessThan, lessThanOrEqual, logicalAnd, logicalOr, mod, modAssign, mul, mulAssign, neg, not, notEqual, orAssign, parens, pos, postDec, postInc, pow, powAssign, preDec, preInc, question, rightDiv, rightDivAssign, rightShift, rightShiftAssign, sub, subAssign, transpose, unsignedRightShift, unsignedRightShiftAssignevaluate, evaluate, evaluatepublic DefaultStackEvaluator()
public DefaultStackEvaluator(ExpressionParser parser)
Copyright © 2015–2021 SciJava. All rights reserved.