Package net.sourceforge.jeval
Class NextOperator
- java.lang.Object
-
- net.sourceforge.jeval.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.
-
-
-
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.
-
-