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