oscript.data
Class Proxy
java.lang.Object
oscript.data.Value
oscript.data.OObject
oscript.data.Proxy
- All Implemented Interfaces:
- java.io.Serializable
- public class Proxy
- extends OObject
A proxy object acts as a proxy, all attempts to resolve a member go
thru the resolve
method which should be implemented by
the derived script class.
- Author:
- Rob Clark (rob@ti.com)
- See Also:
- Serialized Form
Methods inherited from class oscript.data.Value |
_getTypeMember, _populateTypeMemberSet, 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, callAsConstructor, callAsConstructor, callAsExtends, callAsExtends, callAsExtends, callAsFunction, callAsFunction, callAsFunction, castToBoolean, castToExactNumber, castToInexactNumber, castToJavaObject, elementAt, elementsAt, getMember, getMember, getMember, getMember, getMember, getMonitor, getType, getTypeMember, isA, length, memberSet, noSuchMember, opAssign, populateTypeMemberSet, readExternal, toString, unhand, uopBitwiseNot, uopDecrement, uopIncrement, uopLogicalNot, uopMinus, uopPlus, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final Value TYPE
- The type object for an instance of Proxy.
PARENT_TYPE_NAME
public static final java.lang.String PARENT_TYPE_NAME
- See Also:
- Constant Field Values
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
MEMBER_NAMES
public static final java.lang.String[] MEMBER_NAMES
Proxy
public Proxy()
- Class Constructor.
Proxy
public Proxy(MemberTable args)
- Class Constructor. This is the constructor that gets called via an
BuiltinType instance.
- Parameters:
args
- arguments to this constructor
- Throws:
PackagedScriptObjectException(Exception)
- if wrong number of args
getTypeImpl
protected Value getTypeImpl()
- Get the type of this object. The returned type doesn't have to take
into account the possibility of a script type extending a built-in
type, since that is handled by
Value.getType()
.
- Overrides:
getTypeImpl
in class OObject
- Returns:
- the object's type
getTypeMember
protected Value getTypeMember(Value obj,
int id)
- Get a member of this type. This uses the resolve() method implemented
by the derived script class to help resolve members.
- Overrides:
getTypeMember
in class Value
- Parameters:
obj
- an object of this typeid
- the id of the symbol that maps to the member
- Returns:
- a reference to the member, or null
- See Also:
Value.populateTypeMemberSet(java.util.Set, boolean)