public class NullWrappedOperatorTable extends OperatorTable2
<=>
which acts like equals but returns 1 if both arguments are null.NullSafeEquals
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
NullWrappedOperatorTable.NullWrapperOperators
Key for the one operator NullSafeEquals added by the table.
|
OperatorTable2.BasicOperators, OperatorTable2.PsudoOperators, OperatorTable2.SpecialOperators
EmptyOperatorTable.OperatorKey
Modifier and Type | Field and Description |
---|---|
protected NullWrappedFunctionFactory |
factory |
protected boolean |
hasNullSafeEquals |
protected OperatorTable2 |
root |
Constructor and Description |
---|
NullWrappedOperatorTable(OperatorTable2 root,
boolean hasNullSafeEquals)
Create a new operator table which wraps all the existing operators in the original table.
|
NullWrappedOperatorTable(OperatorTable2 root,
NullWrappedFunctionFactory factory,
boolean hasNullSafeEquals)
A table where a specific NullWrapperFunctionFactory is defined.
|
getAdd, getAnd, getAssign, getCross, getDivide, getDot, getEle, getEQ, getGE, getGT, getLE, getList, getLT, getMod, getMultiply, getNE, getNop, getNot, getOr, getPower, getRange, getSubtract, getUDivide, getUMinus, getUPlus
addOperator, addOperator, appendOperator, entrySet, getKey, getLightWeightInstance, getNumOps, getOperator, getOperators, getOperatorsByName, getOperatorsBySymbol, init, insertOperator, keySet, removeOperator, removeOperator, replaceOperator, replaceOperator, setBinaryInverseOp, setDistributiveOver, setGroupOperatorRelations, setGroupOperatorRelations, setInverseOp, setPrecedenceTable, setRootOp, setStandardOperatorRelations, toString
protected OperatorTable2 root
protected NullWrappedFunctionFactory factory
protected boolean hasNullSafeEquals
public NullWrappedOperatorTable(OperatorTable2 root, boolean hasNullSafeEquals)
NullWrappedFunctionFactory.getWrappedFunction(PostfixMathCommandI)
to find the appropriate PFMC for each operator.root
- the original operator tablehasNullSafeEquals
- if true adds a NullSafeEquals operator "<=>" to the tablepublic NullWrappedOperatorTable(OperatorTable2 root, NullWrappedFunctionFactory factory, boolean hasNullSafeEquals)
root
- factory
- hasNullSafeEquals
- Copyright © 2018 Singular Systems http://www.singularsys.com/jep