|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--labss.generator.Context
Implementazione di riferimento di IContext. Non è obbligatorio usare questa implementazione.
Constructor Summary | |
Context()
|
Method Summary | |
void |
bind(java.util.Map bindings)
Aggiunge al contesto uno scope con tutti gli slot definiti nella mappa. |
boolean |
contains(java.lang.String slotName)
Ritorna true se il contesto contiene lo slot specificato.
|
ISlot |
get(java.lang.String slotName)
Restituisce lo slot associato ad un nome. |
void |
unbind()
Toglie dal contesto tutti gli slot dello scope corrente. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Context()
Method Detail |
public void bind(java.util.Map bindings)
IContext
bind
in interface IContext
bindings
- Mappa nome-slot di tutti gli slot di un framepublic void unbind()
IContext
unbind
in interface IContext
public boolean contains(java.lang.String slotName)
IContext
true
se il contesto contiene lo slot specificato.
Questa operazione è necessaria per nascondere l'implementazione
degli slot senza valore.
contains
in interface IContext
slotName
- Nome dello slot da testare
public ISlot get(java.lang.String slotName)
IContext
get
in interface IContext
slotName
- Nome dello slot richiesto.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |