public class StackMachine.Variable extends StackMachine.SymbolTableEntry
Variable here.| Modifier and Type | Field and Description |
|---|---|
int |
address
Describe variable
address here. |
| Constructor and Description |
|---|
StackMachine.Variable(java.lang.String name,
int address)
Creates a new
Variable instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getAddress()
Describe
getAddress method here. |
double |
getValue()
Describe
getValue method here. |
getName, renamepublic StackMachine.Variable(java.lang.String name,
int address)
Variable instance.name - a String valueaddress - an int valuepublic int getAddress()
getAddress method here.int valuepublic double getValue()
throws ParseException
getValue method here.double valueParseException - if an error occurs