|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Environment | +--HashEnv
Environnement implémenté par une table de hachage
Field Summary | |
private Map |
m
Table de hachage pour stocker les affectation |
Constructor Summary | |
(package private) |
HashEnv()
Création d'un environnement vide |
Method Summary | |
(package private) ArithExpr |
get(String v)
Retourne l'expression affectée à une variable |
(package private) void |
put(String v,
ArithExpr e)
Affectation d'une expression à une variable |
(package private) void |
put(String v,
double c)
Affectation d'une constante à une variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Map m
Constructor Detail |
HashEnv()
Method Detail |
void put(String v, ArithExpr e)
put
in class Environment
v
- variablee
- expressionArithExpr get(String v) throws UnboundVariableException
get
in class Environment
v
- variable
UnboundVariableException
void put(String v, double c)
v
- variablec
- constante
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |