freegraph
Class ExpressionItem.Variable

java.lang.Object
  |
  +--freegraph.ExpressionItem
        |
        +--freegraph.ExpressionItem.Variable
Enclosing class:
ExpressionItem

public static class ExpressionItem.Variable
extends ExpressionItem

A VariableExpressionItem is an ExpressionItem used to hold a single character variable.


Nested Class Summary
 
Nested classes inherited from class freegraph.ExpressionItem
ExpressionItem.BiOperator, ExpressionItem.Number, ExpressionItem.Parenthesis, ExpressionItem.UnOperator, ExpressionItem.Variable
 
Constructor Summary
ExpressionItem.Variable(char value)
           
 
Method Summary
 int getAction(ExpressionItem exprItem)
          always moves this to RPN stack.
 char getVariable()
          returns the character for this variable
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionItem.Variable

public ExpressionItem.Variable(char value)
Method Detail

getVariable

public char getVariable()
returns the character for this variable


getAction

public int getAction(ExpressionItem exprItem)
always moves this to RPN stack.

Specified by:
getAction in class ExpressionItem

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object