org.erights.e.elib.slot
Class VoidGuard
java.lang.Object
|
+--org.erights.e.elib.slot.BaseGuard
|
+--org.erights.e.elib.slot.VoidGuard
- All Implemented Interfaces:
- Guard, SlotGuard, ValueGuard
- public class VoidGuard
- extends BaseGuard
Safe: Bound to "void" in the initial environment, it coerces all values to null.
When a method or function does not explicitly specify a return type, the
default return type is "void".
- Author:
- Mark S. Miller
Constructor Summary |
private |
VoidGuard()
prevent external instantiation |
Methods inherited from class org.erights.e.elib.slot.BaseGuard |
__printOn, accepts, and, butNot, coerce, get, makeSlot, makeSlot, not, or, toString, xor |
THE_ONE
public static final VoidGuard THE_ONE
- Enabled:
VoidGuard
private VoidGuard()
- prevent external instantiation
coerce
public Object coerce(Object specimen,
OneArgFunc optEjector)
- Enabled: Coerce everything to null.
- Specified by:
coerce
in interface ValueGuard
- Overrides:
coerce
in class BaseGuard
getName
public String getName()
- Enabled:
- Specified by:
getName
in interface SlotGuard
- Overrides:
getName
in class BaseGuard
comments?