Arithmetic
Class PostfixTranslator

java.lang.Object
  |
  +--Arithmetic.PostfixTranslator

public class PostfixTranslator
extends java.lang.Object

PostfixTranslator translates an infix expression into postfix


Constructor Summary
PostfixTranslator(StringReader r)
          Constructor PostfixTranslator initializes the translator
 
Method Summary
 java.lang.String translate()
          translate does the translation from infix to postfix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostfixTranslator

public PostfixTranslator(StringReader r)
Constructor PostfixTranslator initializes the translator
Parameters:
r - - the object that holds the input infix expression
Method Detail

translate

public java.lang.String translate()
translate does the translation from infix to postfix
Returns:
a string that is the postfix translation of the infix expression that was supplied to the constructor method