|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.erights.e.elib.slot.BaseGuard
|
+--org.erights.e.elib.slot.FinalGuard
Safe: The canonical instance, bound to "final" in the initial environment, is a SlotGuard that makes final slots, coercing the permanent value through an optional valueGuard argument, if present.
As a SlotGuard, "final" makes an immutable slot whose permanent value is the uncoerced specimen.
As a SlotGuardTemplate, "final(valueGuard)" makes a SlotGuard that will make an immutable slot whose initial value is the specimen coerced by this valueGuard.
| Field Summary | |
static FinalGuard |
THE_ONE
Enabled: |
| Fields inherited from class org.erights.e.elib.slot.BaseGuard |
myOptValueGuard |
| Constructor Summary | |
private |
FinalGuard(ValueGuard optValueGuard)
|
| Method Summary | |
String |
getName()
Enabled: "final" or "final(value-guard-name)". |
Slot |
makeSlot(Object specimen,
OneArgFunc optEjector)
Enabled: Returns a FinalSlot that immutably holds the specimen (as coerced by my encapsulated ValueGuard, if present). |
FinalGuard |
run(ValueGuard valueGuard)
Enabled: Makes a Guard that will coerce a specimen with this valueGuard, and make an immutable slot with the resulting value. |
| Methods inherited from class org.erights.e.elib.slot.BaseGuard |
__printOn, accepts, and, butNot, coerce, coerce, get, makeSlot, not, or, toString, xor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final FinalGuard THE_ONE
| Constructor Detail |
private FinalGuard(ValueGuard optValueGuard)
optValueGuard - | Method Detail |
public Slot makeSlot(Object specimen,
OneArgFunc optEjector)
makeSlot in interface SlotGuardmakeSlot in class BaseGuardpublic FinalGuard run(ValueGuard valueGuard)
public String getName()
getName in interface SlotGuardgetName in class BaseGuard
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||