fabric.lang
Class Object._Proxy

java.lang.Object
  extended by fabric.lang.Object._Proxy
All Implemented Interfaces:
Object
Direct Known Subclasses:
_booleanArray._Proxy, _byteArray._Proxy, _charArray._Proxy, _doubleArray._Proxy, _floatArray._Proxy, _intArray._Proxy, _longArray._Proxy, _ObjectArray._Proxy, _shortArray._Proxy, Inlineable._Proxy, JavaInlineable._Proxy, Object._Static._Proxy, Principal._Proxy, Principal._Static._Proxy
Enclosing interface:
Object

public static class Object._Proxy
extends java.lang.Object
implements Object

_Proxy objects behave like regular objects by delegating to _Impl objects, pointed to by a soft reference. This class abstracts away the code for maintaining that soft reference.


Nested Class Summary
 
Nested classes/interfaces inherited from interface fabric.lang.Object
Object._Impl, Object._Proxy, Object._Static
 
Constructor Summary
Object._Proxy(Object._Impl impl)
           
Object._Proxy(Store store, long onum)
           
 
Method Summary
static void _npe(Label lbl)
          A dummy method.
 void $forceRenumber(long onum)
          Deprecated.  
 long $getOnum()
          The object's onum.
 Object._Proxy $getProxy()
          A proxy for this object.
static java.lang.Object $getProxy(java.lang.Object o)
           
 Store $getStore()
          The store where the object resides.
 java.lang.Object $unwrap()
          Unwraps a wrapped Java inlineable.
 Statistics createStatistics()
          Creates a Statistics object to determine promises for this Object.
 boolean equals(java.lang.Object arg1)
          A delegate for the default equals implementation.
 boolean equals(Object arg1)
          A delegate for the default equals implementation.
 Object._Impl fetch()
          Fetches the object if this is a proxy; returns itself if it's an impl.
 Label get$label()
          Label for this object
 int hashCode()
          A delegate for the default hashcode implementation.
 boolean idEquals(Object other)
          Whether this object has the same identity as another object.
static boolean idEquals(java.lang.Object o1, java.lang.Object o2)
          return true if o1 and o2 are objects with the same identity.
 java.lang.String toString()
          A delegate for the default toString implementation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Object._Proxy

public Object._Proxy(Store store,
                     long onum)

Object._Proxy

public Object._Proxy(Object._Impl impl)
Method Detail

fetch

public final Object._Impl fetch()
Description copied from interface: Object
Fetches the object if this is a proxy; returns itself if it's an impl.

Specified by:
fetch in interface Object

$getStore

public final Store $getStore()
Description copied from interface: Object
The store where the object resides.

Specified by:
$getStore in interface Object

$getOnum

public final long $getOnum()
Description copied from interface: Object
The object's onum.

Specified by:
$getOnum in interface Object

idEquals

public final boolean idEquals(Object other)
Description copied from interface: Object
Whether this object has the same identity as another object.

Specified by:
idEquals in interface Object

get$label

public final Label get$label()
Description copied from interface: Object
Label for this object

Specified by:
get$label in interface Object

$getProxy

public final Object._Proxy $getProxy()
Description copied from interface: Object
A proxy for this object.

Specified by:
$getProxy in interface Object

$unwrap

public final java.lang.Object $unwrap()
Description copied from interface: Object
Unwraps a wrapped Java inlineable.

Specified by:
$unwrap in interface Object

$getProxy

public static final java.lang.Object $getProxy(java.lang.Object o)

idEquals

public static final boolean idEquals(java.lang.Object o1,
                                     java.lang.Object o2)
return true if o1 and o2 are objects with the same identity.


equals

public boolean equals(java.lang.Object arg1)
A delegate for the default equals implementation.

Overrides:
equals in class java.lang.Object

equals

public boolean equals(Object arg1)
A delegate for the default equals implementation.

Specified by:
equals in interface Object

toString

public java.lang.String toString()
A delegate for the default toString implementation.

Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
A delegate for the default hashcode implementation.

Overrides:
hashCode in class java.lang.Object

$forceRenumber

public final void $forceRenumber(long onum)
Deprecated. 

This method changes the onum of the object. Unless if you really know what you're doing, you should not call this, as it leaves the system in an inconsistent state.

This method is used to initialize object databases with objects at well-known onums (e.g., naming map and store principal).

Specified by:
$forceRenumber in interface Object

createStatistics

public Statistics createStatistics()
Description copied from interface: Object
Creates a Statistics object to determine promises for this Object.

Specified by:
createStatistics in interface Object

_npe

public static void _npe(Label lbl)
                 throws java.lang.NullPointerException
A dummy method. This is a hack for working around reachability problems in generated code.

Throws:
java.lang.NullPointerException