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

Field Summary
static PassByProxyGuard THE_ONE
          Enabled:
 
Fields inherited from class org.erights.e.elib.slot.BaseGuard
myOptValueGuard
 
Constructor Summary
private PassByProxyGuard()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

THE_ONE

public static final PassByProxyGuard THE_ONE
Enabled:

Constructor Detail

PassByProxyGuard

private PassByProxyGuard()
Method Detail

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?