public interface LocalVariableMap extends VariableMap
VariableMap
works on the map at the top
of the stack.Modifier and Type | Method and Description |
---|---|
void |
dropFrame()
Drop the current frame and pop off the map from the top of the stack.
|
void |
newFrame()
Push the actual Map onto the stack of maps and create a new empty stack.
|
void |
registerGlobalVariable(String variableName)
Register a variable as a global variable.
|
void |
registerLocalVariable(String variableName)
Define the variable as a local variable in a local environment.
|
getVariableNameSet, getVariableValue, setVariable, variableDefined, variableExists
void newFrame()
void dropFrame()
void registerGlobalVariable(String variableName) throws ExecutionException
Interpreters handle variables differently. When a variable is not defined using some keyword as 'LOCAL' or 'GLOBAL' then the interpreter may treat the variable default local, may treat default global or may raise error.
This method can be used to declare that a variable is used in the local environment referring to the global variable.
variableName
- ExecutionException
void registerLocalVariable(String variableName) throws ExecutionException
registerGlobalVariable(String)
variableName
- ExecutionException
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.