oscript.data
Class Type

java.lang.Object
  extended byoscript.data.Value
      extended byoscript.data.Type
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Function, JavaClassWrapper

public abstract class Type
extends Value

XXX not sure if we need a common parent for all types, but we might end up with some common utility code.

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

Field Summary
static Value HIDDEN_TYPE
          The type of special objects, which shouldn't be accessible from a oscript program.
 
Fields inherited from class oscript.data.Value
DEBUG, MEMBER_NAMES, NULL, PARENT_TYPE_NAME, TYPE, TYPE_NAME, UNDEFINED
 
Constructor Summary
Type()
          Class Constructor.
Type(MemberTable args)
          Class Constructor.
 
Method Summary
 boolean isA(Value type)
          If this object is a type, determine if an instance of this type is an instance of the specified type, ie.
 
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, castToString, elementAt, elementsAt, getMember, getMember, getMember, getMember, getMember, getMember, getMonitor, getType, getTypeImpl, getTypeMember, getTypeMember, length, memberSet, noSuchMember, opAssign, populateMemberSet, 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
 

Field Detail

HIDDEN_TYPE

public static final Value HIDDEN_TYPE
The type of special objects, which shouldn't be accessible from a oscript program. For example, scope.

Constructor Detail

Type

public Type()
Class Constructor.


Type

public Type(MemberTable args)
Class Constructor.

Parameters:
args - arguments to this constructor
Throws:
PackagedScriptObjectException(Exception) - if wrong number of args
Method Detail

isA

public boolean isA(Value type)
If this object is a type, determine if an instance of this type is an instance of the specified type, ie. if this is type, or a subclass.

Overrides:
isA in class Value
Parameters:
type - the type to compare this type to
Returns:
true or false
Throws:
PackagedScriptObjectException(NoSuchMemberException)