mae.expr
Interface Expression

All Known Implementing Classes:
Binary, Constant

public interface Expression

Basic methods in a simple expression.

Only constants and four binary operations are implemented.
Parentheses may be used witout any limitation.

 Jan 2002   First version
 30.8.2002  redesigned
 23.12.2002 package
 4.7.2003   NetBeans
 


Method Summary
 float fValue()
          Returns float value of this Expression
 java.lang.String toPostfix()
          Converts this Expression to postfix (RPN)
 java.lang.String toString()
          String representation of this Expression
 java.lang.Object toTree()
          Converts this Expression to tree **implement this**.
 

Method Detail

fValue

public float fValue()
Returns float value of this Expression


toString

public java.lang.String toString()
String representation of this Expression


toPostfix

public java.lang.String toPostfix()
Converts this Expression to postfix (RPN)


toTree

public java.lang.Object toTree()
Converts this Expression to tree **implement this**.

Tree may be in text form or a JTree.