Package com.singularsys.jep
Interface OperatorTableI
- All Superinterfaces:
JepComponent
,Serializable
- All Known Implementing Classes:
BigDecOperatorTable
,BitwiseOperatorTable
,EmptyOperatorTable
,ExtendedOperatorSet
,JavaOperatorTable
,NullWrappedOperatorTable
,OperatorTable
,OperatorTable2
,StandardOperatorTable
,StandardOperatorTable2
Interface for all OperatorTables.
-
Method Summary
Modifier and TypeMethodDescriptiongetAdd()
Gets the operator used for additiongetAnd()
Gets the operator used for logical ANDGets the operator used for assignmentgetCross()
Gets the operator used for 3D cross productGets the operator used for divisiongetDot()
Gets the operator used for the dot productgetEle()
Gets the operator used for getting and setting elements of a listgetEQ()
Gets the operator used for equalsgetGE()
Gets the operator used for greater than or equals togetGT()
Gets the operator used for greater-thangetLE()
Gets the operator used for less-than or equals togetList()
Gets the operator used for creation of lists[1,2,3]
getLT()
Gets the operator used for less-thangetMod()
Gets the operator used for modulusGets the operator used for multiplicationgetNE()
Gets the operator used for not equalsgetNop()
Gets the no-op operatorgetNot()
Gets the operator used for logical NOTgetOperatorsByName
(String name) Get the operator with a given namegetOperatorsBySymbol
(String symbol) Gets all the operators with a given symbolgetOr()
Gets the operator used for logical ORgetPower()
Gets the operator used for powersgetRange()
Gets the operator used for specifying a rangeGets the operator used for subtractionunary division i.e.Gets the operator used for unitary minus-x
getUPlus()
Gets the operator used for unary addition+x
Create a new version of this OperatorTable.Methods inherited from interface com.singularsys.jep.JepComponent
getLightWeightInstance, init
-
Method Details
-
getOperatorsBySymbol
Gets all the operators with a given symbol- Parameters:
symbol
- symbol used for operator- Returns:
- list of operators with a given symbol, empty list if none are found.
-
getOperatorsByName
Get the operator with a given name- Parameters:
name
- unique name of operator- Returns:
- the operator or null if not found
-
getOperators
Collection<Operator> getOperators() -
getNop
Operator getNop()Gets the no-op operator -
getAdd
Operator getAdd()Gets the operator used for addition -
getSubtract
Operator getSubtract()Gets the operator used for subtraction -
getUMinus
Operator getUMinus()Gets the operator used for unitary minus-x
-
getUPlus
Operator getUPlus()Gets the operator used for unary addition+x
-
getMultiply
Operator getMultiply()Gets the operator used for multiplication -
getDivide
Operator getDivide()Gets the operator used for division -
getMod
Operator getMod()Gets the operator used for modulus -
getUDivide
Operator getUDivide()unary division i.e. 1/x or x^(-1) * -
getPower
Operator getPower()Gets the operator used for powers -
getGT
Operator getGT()Gets the operator used for greater-than -
getLT
Operator getLT()Gets the operator used for less-than -
getLE
Operator getLE()Gets the operator used for less-than or equals to -
getGE
Operator getGE()Gets the operator used for greater than or equals to -
getNE
Operator getNE()Gets the operator used for not equals -
getEQ
Operator getEQ()Gets the operator used for equals -
getAnd
Operator getAnd()Gets the operator used for logical AND -
getOr
Operator getOr()Gets the operator used for logical OR -
getNot
Operator getNot()Gets the operator used for logical NOT -
getAssign
Operator getAssign()Gets the operator used for assignment -
getDot
Operator getDot()Gets the operator used for the dot product -
getCross
Operator getCross()Gets the operator used for 3D cross product -
getList
Operator getList()Gets the operator used for creation of lists[1,2,3]
-
getEle
Operator getEle()Gets the operator used for getting and setting elements of a list -
getRange
Operator getRange()Gets the operator used for specifying a range -
shallowCopy
OperatorTableI shallowCopy()Create a new version of this OperatorTable. Existing Operators are copied into new table. However, Operators whose pfmc's implement JepComponent are duplicated, this means the table could be used in multiple threads without problem.- Returns:
- a new OperatorTable
- Since:
- 4.0
-