Class NextOperator


  • class NextOperator
    extends java.lang.Object
    Represents the next operator in the expression to process.
    • Constructor Summary

      Constructors 
      Constructor Description
      NextOperator​(Operator operator, int index)
      Create a new NextOperator from an operator and index.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex()
      Returns the index for this object.
      Operator getOperator()
      Returns the operator for this object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NextOperator

        public NextOperator​(Operator operator,
                            int index)
        Create a new NextOperator from an operator and index.
        Parameters:
        operator - The operator this object represents.
        index - The index of the operator in the expression.
    • Method Detail

      • getOperator

        public Operator getOperator()
        Returns the operator for this object.
        Returns:
        The operator represented by this object.
      • getIndex

        public int getIndex()
        Returns the index for this object.
        Returns:
        The index of the operator in the expression.