Interface OperatorTableI

All Superinterfaces:
JepComponent, Serializable
All Known Implementing Classes:
BigDecOperatorTable, BitwiseOperatorTable, EmptyOperatorTable, ExtendedOperatorSet, JavaOperatorTable, NullWrappedOperatorTable, OperatorTable, OperatorTable2, StandardOperatorTable, StandardOperatorTable2

public interface OperatorTableI extends JepComponent
Interface for all OperatorTables.
  • Method Details

    • getOperatorsBySymbol

      List<Operator> getOperatorsBySymbol(String symbol)
      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

      Operator getOperatorsByName(String name)
      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