|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Untamed: A SlotGuard creates the slot used to implement a variable, and thereby serves as the dynamic equivalent of a variable declaration.
The made Slot may constrain the values it will accept (as a type declaration would) and it may constrain how it may be mutated (eg, "final").
Method Summary | |
String |
getName()
Enabled: All E guards should respond to "getName()" |
Slot |
makeSlot(Object specimen,
OneArgFunc optEjector)
Enabled: The specimen is the candidate initial value of the variable. |
Method Detail |
public Slot makeSlot(Object specimen, OneArgFunc optEjector)
If optEjector is null, then throw the problem. Otherwise, call optEjector with the problem. optEjector should perform a non-local exit, and so should not return. If optEjector returns anyway, then throw the problem after all.
public String getName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |