Class ArithmeticOperatorTable

java.lang.Object
  |
  +--OperatorTable
        |
        +--ArithmeticOperatorTable

public class ArithmeticOperatorTable
extends OperatorTable

Class which represents all of the operators that may be allowed in a simple arithmetic equation. + (AdditionOperator), * (MultiplicationOperator), / (DivisionOperator), - (SubtractionOperator), and - (NegationOperator)).

Also to demonstrate the capacity of multiple character delimiters in AdaptedStringTokenizer the operator SineOperator is also included.


Fields inherited from class OperatorTable
capacity, operators, size
 
Constructor Summary
ArithmeticOperatorTable()
          Constructs a new OperatorTable with the appropriate entries.
 
Methods inherited from class OperatorTable
add, getTokens, isAnOperator, operatorFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArithmeticOperatorTable

public ArithmeticOperatorTable()
Constructs a new OperatorTable with the appropriate entries.