com.rychlik.calculator
Class StackMachine.Constant
java.lang.Object
|
+--com.rychlik.calculator.StackMachine.SymbolTableEntry
|
+--com.rychlik.calculator.StackMachine.Constant
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- StackMachine
- public class StackMachine.Constant
- extends StackMachine.SymbolTableEntry
Describe class Constant here.
- See Also:
- Serialized Form
Field Summary |
double |
value
Describe variable value here. |
Constructor Summary |
StackMachine.Constant(java.lang.String name,
double value)
Creates a new Constant instance. |
Method Summary |
double |
getValue()
Describe getValue method here. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
public final double value
- Describe variable
value here.
StackMachine.Constant
public StackMachine.Constant(java.lang.String name,
double value)
- Creates a new
Constant instance.
- Parameters:
name - a String valuevalue - a double value
getValue
public double getValue()
- Describe
getValue method here.
- Returns:
- a
double value
|