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.ADDoperator.default ObjectApplies theOperators.ADD_ASSIGNoperator.default ObjectApplies theOperators.AND_ASSIGNoperator.default ObjectApplies theOperators.ASSIGNoperator.bitwiseAnd(Object a, Object b) Applies theOperators.BITWISE_ANDoperator.Applies theOperators.BITWISE_ORoperator.Applies theOperators.BRACESoperator.Applies theOperators.BRACKETSoperator.Applies theOperators.COLONoperator.complement(Object a) Applies theOperators.COMPLEMENToperator.Applies theOperators.DIVoperator.default ObjectApplies theOperators.DIV_ASSIGNoperator.Applies theOperators.DOToperator.Applies theOperators.DOT_DIVoperator.default ObjectdotDivAssign(Object a, Object b) Applies theOperators.DOT_DIV_ASSIGNoperator.Applies theOperators.DOT_MULoperator.Applies theOperators.DOT_POWoperator.default ObjectdotPowAssign(Object a, Object b) Applies theOperators.DOT_POW_ASSIGNoperator.dotRightDiv(Object a, Object b) Applies theOperators.DOT_RIGHT_DIVoperator.default ObjectdotRightDivAssign(Object a, Object b) Applies theOperators.DOT_RIGHT_DIV_ASSIGNoperator.Applies theOperators.DOT_TRANSPOSEoperator.Applies theOperators.EQUALoperator.default ObjectPerforms an operation.Applies theFunctionoperator.greaterThan(Object a, Object b) Applies theOperators.GREATER_THANoperator.greaterThanOrEqual(Object a, Object b) Applies theOperators.GREATER_THAN_OR_EQUALoperator.instanceOf(Object a, Object b) Applies theOperators.INSTANCEOFoperator.Applies theOperators.LEFT_SHIFToperator.default ObjectleftShiftAssign(Object a, Object b) Applies theOperators.LEFT_SHIFT_ASSIGNoperator.Applies theOperators.LESS_THANoperator.lessThanOrEqual(Object a, Object b) Applies theOperators.LESS_THAN_OR_EQUALoperator.logicalAnd(Object a, Object b) Applies theOperators.LOGICAL_ANDoperator.Applies theOperators.LOGICAL_ORoperator.Applies theOperators.MODoperator.default ObjectApplies theOperators.MOD_ASSIGNoperator.Applies theOperators.MULoperator.default ObjectApplies theOperators.MUL_ASSIGNoperator.Applies theOperators.NEGoperator.Applies theOperators.NOToperator.Applies theOperators.NOT_EQUALoperator.default ObjectApplies theOperators.OR_ASSIGNoperator.Applies theOperators.PARENSoperator.Applies theOperators.POSoperator.default ObjectApplies theOperators.POST_DECoperator.default ObjectApplies theOperators.POST_INCoperator.Applies theOperators.POWoperator.default ObjectApplies theOperators.POW_ASSIGNoperator.default ObjectApplies theOperators.PRE_DECoperator.default ObjectApplies theOperators.PRE_INCoperator.Applies theOperators.QUESTIONoperator.Applies theOperators.RIGHT_DIVoperator.default ObjectrightDivAssign(Object a, Object b) Applies theOperators.RIGHT_DIV_ASSIGNoperator.rightShift(Object a, Object b) Applies theOperators.RIGHT_SHIFToperator.default ObjectrightShiftAssign(Object a, Object b) Applies theOperators.RIGHT_SHIFT_ASSIGNoperator.Applies theOperators.SUBoperator.default ObjectApplies theOperators.SUB_ASSIGNoperator.Applies theOperators.TRANSPOSEoperator.unsignedRightShift(Object a, Object b) Applies theOperators.UNSIGNED_RIGHT_SHIFToperator.default ObjectApplies theOperators.UNSIGNED_RIGHT_SHIFT_ASSIGNoperator.
-
Method Details
-
function
Applies theFunctionoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dot
Applies theOperators.DOToperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
parens
Applies theOperators.PARENSoperator.- Parameters:
args- The arguments.- Returns:
- The result of the operation.
-
brackets
Applies theOperators.BRACKETSoperator.- Parameters:
args- The arguments.- Returns:
- The result of the operation.
-
braces
Applies theOperators.BRACESoperator.- Parameters:
args- The arguments.- Returns:
- The result of the operation.
-
transpose
Applies theOperators.TRANSPOSEoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
dotTranspose
Applies theOperators.DOT_TRANSPOSEoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
pow
Applies theOperators.POWoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dotPow
Applies theOperators.DOT_POWoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
postInc
Applies theOperators.POST_INCoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
postDec
Applies theOperators.POST_DECoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
preInc
Applies theOperators.PRE_INCoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
preDec
Applies theOperators.PRE_DECoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
pos
Applies theOperators.POSoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
neg
Applies theOperators.NEGoperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
complement
Applies theOperators.COMPLEMENToperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
not
Applies theOperators.NOToperator.- Parameters:
a- The argument.- Returns:
- The result of the operation.
-
mul
Applies theOperators.MULoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
div
Applies theOperators.DIVoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
mod
Applies theOperators.MODoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
rightDiv
Applies theOperators.RIGHT_DIVoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dotMul
Applies theOperators.DOT_MULoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dotDiv
Applies theOperators.DOT_DIVoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dotRightDiv
Applies theOperators.DOT_RIGHT_DIVoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
add
Applies theOperators.ADDoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
sub
Applies theOperators.SUBoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
leftShift
Applies theOperators.LEFT_SHIFToperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
rightShift
Applies theOperators.RIGHT_SHIFToperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
unsignedRightShift
Applies theOperators.UNSIGNED_RIGHT_SHIFToperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
lessThan
Applies theOperators.LESS_THANoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
greaterThan
Applies theOperators.GREATER_THANoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
lessThanOrEqual
Applies theOperators.LESS_THAN_OR_EQUALoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
greaterThanOrEqual
Applies theOperators.GREATER_THAN_OR_EQUALoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
instanceOf
Applies theOperators.INSTANCEOFoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
equal
Applies theOperators.EQUALoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
notEqual
Applies theOperators.NOT_EQUALoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
bitwiseAnd
Applies theOperators.BITWISE_ANDoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
bitwiseOr
Applies theOperators.BITWISE_ORoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
logicalAnd
Applies theOperators.LOGICAL_ANDoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
logicalOr
Applies theOperators.LOGICAL_ORoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
question
Applies theOperators.QUESTIONoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
colon
Applies theOperators.COLONoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
assign
Applies theOperators.ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
powAssign
Applies theOperators.POW_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dotPowAssign
Applies theOperators.DOT_POW_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
mulAssign
Applies theOperators.MUL_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
divAssign
Applies theOperators.DIV_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
modAssign
Applies theOperators.MOD_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
rightDivAssign
Applies theOperators.RIGHT_DIV_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dotDivAssign
Applies theOperators.DOT_DIV_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
dotRightDivAssign
Applies theOperators.DOT_RIGHT_DIV_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
addAssign
Applies theOperators.ADD_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
subAssign
Applies theOperators.SUB_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
andAssign
Applies theOperators.AND_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
orAssign
Applies theOperators.OR_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
leftShiftAssign
Applies theOperators.LEFT_SHIFT_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
rightShiftAssign
Applies theOperators.RIGHT_SHIFT_ASSIGNoperator.- Parameters:
a- The first argument.b- The second argument.- Returns:
- The result of the operation.
-
unsignedRightShiftAssign
Applies theOperators.UNSIGNED_RIGHT_SHIFT_ASSIGNoperator.- 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.
-