org.erights.e.elib.serial
Class PassByProxyGuard
java.lang.Object
|
+--org.erights.e.elib.slot.BaseGuard
|
+--org.erights.e.elib.serial.PassByProxyGuard
- All Implemented Interfaces:
- Guard, SlotGuard, ValueGuard
- public final class PassByProxyGuard
- extends BaseGuard
Untamed: The guard known as "PassByProxy".
There's no reason to make this be an auditor as well, since E-language
objects are PassByProxy by default.
- Author:
- Mark S. Miller
Method Summary |
Object |
coerce(Object specimen,
OneArgFunc optEjector)
Enabled: Coerces specimen to be
pass-by-proxy, which includes types that are not Java-subtypes of
PassByProxy. |
String |
getName()
Enabled: |
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 PassByProxyGuard THE_ONE
- Enabled:
PassByProxyGuard
private PassByProxyGuard()
getName
public String getName()
- Enabled:
- Specified by:
getName
in interface SlotGuard
- Overrides:
getName
in class BaseGuard
coerce
public Object coerce(Object specimen,
OneArgFunc optEjector)
- Enabled: Coerces specimen to be
pass-by-proxy, which includes types that are not Java-subtypes of
PassByProxy. If the specimen can't be coerced, exit according
to optEjector.
- Specified by:
coerce
in interface ValueGuard
- Overrides:
coerce
in class BaseGuard
comments?