|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.sposh.engine.VariableContext
public final class VariableContext
This class is responsible for storing and passing arguments throught the posh plan. Unnamed varibales are named as number (e.g. "0", "1"...), named variables have same name as in plan.
| Constructor Summary | |
|---|---|
VariableContext()
|
|
VariableContext(VariableContext ctx,
Arguments callArgs)
Create new VariableContext that will contain only variables from call arguments. |
|
VariableContext(VariableContext ctx,
Arguments callParameters,
FormalParameters formalParameters)
Create new variable context for diving into another function. |
|
| Method Summary | |
|---|---|
String[] |
getKeys()
Get keys of all variables in this context. |
Object |
getValue(String variableName)
Get value stored in the |
boolean |
hasVariable(String variableName)
|
Object |
put(String parameterName,
Object value)
Put another variable into this context |
int |
size()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VariableContext()
public VariableContext(VariableContext ctx,
Arguments callArgs)
callArgs -
public VariableContext(VariableContext ctx,
Arguments callParameters,
FormalParameters formalParameters)
ctx - callParameters - formalParameters - | Method Detail |
|---|
public Object put(String parameterName,
Object value)
parameterName - name of new parametervalue - value of parameter
public String[] getKeys()
public Object getValue(String variableName)
variableName -
IllegalArgumentException - If such variable is not present.public String toString()
toString in class Objectpublic int size()
public boolean hasVariable(String variableName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||