Package org.scijava.parsington.eval
Interface StandardEvaluator
- All Superinterfaces:
Evaluator
- All Known Subinterfaces:
StandardStackEvaluator
,StandardTreeEvaluator
- All Known Implementing Classes:
AbstractStandardEvaluator
,DefaultStackEvaluator
,DefaultTreeEvaluator
Interface for expression evaluators which support the
standard operators
.- Author:
- Curtis Rueden
-
Method Summary
Modifier and TypeMethodDescriptionApplies theOperators.ADD
operator.default Object
Applies theOperators.ADD_ASSIGN
operator.default Object
Applies theOperators.AND_ASSIGN
operator.default Object
Applies theOperators.ASSIGN
operator.bitwiseAnd
(Object a, Object b) Applies theOperators.BITWISE_AND
operator.Applies theOperators.BITWISE_OR
operator.Applies theOperators.BRACES
operator.Applies theOperators.BRACKETS
operator.Applies theOperators.COLON
operator.complement
(Object a) Applies theOperators.COMPLEMENT
operator.Applies theOperators.DIV
operator.default Object
Applies theOperators.DIV_ASSIGN
operator.Applies theOperators.DOT
operator.Applies theOperators.DOT_DIV
operator.default Object
dotDivAssign
(Object a, Object b) Applies theOperators.DOT_DIV_ASSIGN
operator.Applies theOperators.DOT_MUL
operator.Applies theOperators.DOT_POW
operator.default Object
dotPowAssign
(Object a, Object b) Applies theOperators.DOT_POW_ASSIGN
operator.dotRightDiv
(Object a, Object b) Applies theOperators.DOT_RIGHT_DIV
operator.default Object
dotRightDivAssign
(Object a, Object b) Applies theOperators.DOT_RIGHT_DIV_ASSIGN
operator.Applies theOperators.DOT_TRANSPOSE
operator.Applies theOperators.EQUAL
operator.default Object
Performs an operation.Applies theFunction
operator.greaterThan
(Object a, Object b) Applies theOperators.GREATER_THAN
operator.greaterThanOrEqual
(Object a, Object b) Applies theOperators.GREATER_THAN_OR_EQUAL
operator.instanceOf
(Object a, Object b) Applies theOperators.INSTANCEOF
operator.Applies theOperators.LEFT_SHIFT
operator.default Object
leftShiftAssign
(Object a, Object b) Applies theOperators.LEFT_SHIFT_ASSIGN
operator.Applies theOperators.LESS_THAN
operator.lessThanOrEqual
(Object a, Object b) Applies theOperators.LESS_THAN_OR_EQUAL
operator.logicalAnd
(Object a, Object b) Applies theOperators.LOGICAL_AND
operator.Applies theOperators.LOGICAL_OR
operator.Applies theOperators.MOD
operator.default Object
Applies theOperators.MOD_ASSIGN
operator.Applies theOperators.MUL
operator.default Object
Applies theOperators.MUL_ASSIGN
operator.Applies theOperators.NEG
operator.Applies theOperators.NOT
operator.Applies theOperators.NOT_EQUAL
operator.default Object
Applies theOperators.OR_ASSIGN
operator.Applies theOperators.PARENS
operator.Applies theOperators.POS
operator.default Object
Applies theOperators.POST_DEC
operator.default Object
Applies theOperators.POST_INC
operator.Applies theOperators.POW
operator.default Object
Applies theOperators.POW_ASSIGN
operator.default Object
Applies theOperators.PRE_DEC
operator.default Object
Applies theOperators.PRE_INC
operator.Applies theOperators.QUESTION
operator.Applies theOperators.RIGHT_DIV
operator.default Object
rightDivAssign
(Object a, Object b) Applies theOperators.RIGHT_DIV_ASSIGN
operator.rightShift
(Object a, Object b) Applies theOperators.RIGHT_SHIFT
operator.default Object
rightShiftAssign
(Object a, Object b) Applies theOperators.RIGHT_SHIFT_ASSIGN
operator.Applies theOperators.SUB
operator.default Object
Applies theOperators.SUB_ASSIGN
operator.Applies theOperators.TRANSPOSE
operator.unsignedRightShift
(Object a, Object b) Applies theOperators.UNSIGNED_RIGHT_SHIFT
operator.default Object
Applies theOperators.UNSIGNED_RIGHT_SHIFT_ASSIGN
operator.
-
Method Details
-
function
Applies theFunction
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dot
Applies theOperators.DOT
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
parens
Applies theOperators.PARENS
operator.- Parameters:
args
- The arguments.- Returns:
- The result of the operation.
-
brackets
Applies theOperators.BRACKETS
operator.- Parameters:
args
- The arguments.- Returns:
- The result of the operation.
-
braces
Applies theOperators.BRACES
operator.- Parameters:
args
- The arguments.- Returns:
- The result of the operation.
-
transpose
Applies theOperators.TRANSPOSE
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
dotTranspose
Applies theOperators.DOT_TRANSPOSE
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
pow
Applies theOperators.POW
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dotPow
Applies theOperators.DOT_POW
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
postInc
Applies theOperators.POST_INC
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
postDec
Applies theOperators.POST_DEC
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
preInc
Applies theOperators.PRE_INC
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
preDec
Applies theOperators.PRE_DEC
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
pos
Applies theOperators.POS
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
neg
Applies theOperators.NEG
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
complement
Applies theOperators.COMPLEMENT
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
not
Applies theOperators.NOT
operator.- Parameters:
a
- The argument.- Returns:
- The result of the operation.
-
mul
Applies theOperators.MUL
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
div
Applies theOperators.DIV
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
mod
Applies theOperators.MOD
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
rightDiv
Applies theOperators.RIGHT_DIV
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dotMul
Applies theOperators.DOT_MUL
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dotDiv
Applies theOperators.DOT_DIV
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dotRightDiv
Applies theOperators.DOT_RIGHT_DIV
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
add
Applies theOperators.ADD
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
sub
Applies theOperators.SUB
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
leftShift
Applies theOperators.LEFT_SHIFT
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
rightShift
Applies theOperators.RIGHT_SHIFT
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
unsignedRightShift
Applies theOperators.UNSIGNED_RIGHT_SHIFT
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
lessThan
Applies theOperators.LESS_THAN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
greaterThan
Applies theOperators.GREATER_THAN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
lessThanOrEqual
Applies theOperators.LESS_THAN_OR_EQUAL
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
greaterThanOrEqual
Applies theOperators.GREATER_THAN_OR_EQUAL
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
instanceOf
Applies theOperators.INSTANCEOF
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
equal
Applies theOperators.EQUAL
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
notEqual
Applies theOperators.NOT_EQUAL
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
bitwiseAnd
Applies theOperators.BITWISE_AND
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
bitwiseOr
Applies theOperators.BITWISE_OR
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
logicalAnd
Applies theOperators.LOGICAL_AND
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
logicalOr
Applies theOperators.LOGICAL_OR
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
question
Applies theOperators.QUESTION
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
colon
Applies theOperators.COLON
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
assign
Applies theOperators.ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
powAssign
Applies theOperators.POW_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dotPowAssign
Applies theOperators.DOT_POW_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
mulAssign
Applies theOperators.MUL_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
divAssign
Applies theOperators.DIV_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
modAssign
Applies theOperators.MOD_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
rightDivAssign
Applies theOperators.RIGHT_DIV_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dotDivAssign
Applies theOperators.DOT_DIV_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
dotRightDivAssign
Applies theOperators.DOT_RIGHT_DIV_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
addAssign
Applies theOperators.ADD_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
subAssign
Applies theOperators.SUB_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
andAssign
Applies theOperators.AND_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
orAssign
Applies theOperators.OR_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
leftShiftAssign
Applies theOperators.LEFT_SHIFT_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
rightShiftAssign
Applies theOperators.RIGHT_SHIFT_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
unsignedRightShiftAssign
Applies theOperators.UNSIGNED_RIGHT_SHIFT_ASSIGN
operator.- Parameters:
a
- The first argument.b
- The second argument.- Returns:
- The result of the operation.
-
execute
Performs an operation.- Parameters:
op
- The operator to execute.args
- The arguments to pass.- Returns:
- The result of the operation.
-