oscript.data
Class WeakReference

java.lang.Object
  extended byoscript.data.Value
      extended byoscript.data.AbstractReference
          extended byoscript.data.WeakReference
All Implemented Interfaces:
java.io.Serializable

public class WeakReference
extends AbstractReference

A weak reference to an object will not prevent the object from being garbage collected. Before the referent is GC'd, the weak reference is a proxy for the referent, but once GC'd the weak reference behaves as null.

NOTES:

Version:
1.44
Author:
Rob Clark (rob@ti.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class oscript.data.Value
DEBUG, MEMBER_NAMES, NULL, PARENT_TYPE_NAME, TYPE, TYPE_NAME, UNDEFINED
 
Constructor Summary
WeakReference(Value val)
          Class Constructor.
 
Method Summary
protected  Value get()
          Get the referent
 
Methods inherited from class oscript.data.AbstractReference
bopBitwiseAnd, bopBitwiseAndR, bopBitwiseOr, bopBitwiseOrR, bopBitwiseXor, bopBitwiseXorR, bopCast, bopCastR, bopDivide, bopDivideR, bopEquals, bopEqualsR, bopGreaterThan, bopGreaterThanOrEquals, bopGreaterThanOrEqualsR, bopGreaterThanR, bopInstanceOf, bopInstanceOfR, bopLeftShift, bopLeftShiftR, bopLessThan, bopLessThanOrEquals, bopLessThanOrEqualsR, bopLessThanR, bopLogicalAnd, bopLogicalAndR, bopLogicalOr, bopLogicalOrR, bopMinus, bopMinusR, bopMultiply, bopMultiplyR, bopNotEquals, bopNotEqualsR, bopPlus, bopPlusR, bopRemainder, bopRemainderR, bopSignedRightShift, bopSignedRightShiftR, bopUnsignedRightShift, bopUnsignedRightShiftR, callAsConstructor, callAsExtends, callAsFunction, castToBoolean, castToExactNumber, castToInexactNumber, castToJavaObject, castToString, elementAt, elementsAt, equals, getMember, getMonitor, getType, getTypeImpl, getTypeMember, hashCode, isA, length, memberSet, unhand, uopBitwiseNot, uopDecrement, uopIncrement, uopLogicalNot, uopMinus, uopPlus
 
Methods inherited from class oscript.data.Value
_getTypeMember, _populateTypeMemberSet, callAsConstructor, callAsConstructor, callAsExtends, callAsExtends, callAsFunction, callAsFunction, getMember, getMember, getMember, getMember, getMember, getTypeMember, noSuchMember, opAssign, populateMemberSet, populateTypeMemberSet, readExternal, toString, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WeakReference

public WeakReference(Value val)
Class Constructor.

Method Detail

get

protected Value get()
Get the referent

Specified by:
get in class AbstractReference
Returns:
the value this reference refers to