|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.data.Value
oscript.data.OObject
The built-in type Object, which is the type that implements the root of the inheritance hierarchy of all language types. All types either directly or indirectly inherit from this class.
Some of the class hierarchy should be re-thought... perhaps the methods
that are implemented in Value
should be moved to this
class?
Field Summary | |
static NodeEvaluator |
EMPTY_EXPR_LIST_EVALUATOR
When a script function doesn't explicitly extend another type, it implicitly subclasses Object, and uses this expression-list when calling the super-class constructor. |
static java.lang.String[] |
MEMBER_NAMES
|
static java.lang.String |
PARENT_TYPE_NAME
|
static Value |
TYPE
The type object for an instance of Object. |
static java.lang.String |
TYPE_NAME
|
Fields inherited from class oscript.data.Value |
DEBUG, NULL, UNDEFINED |
Constructor Summary | |
OObject()
Class Constructor. |
|
OObject(MemberTable args)
Class Constructor. |
Method Summary | |
java.lang.String |
castToString()
Convert this object to a native java String value. |
Value |
getMember(int id,
boolean exception)
Get a member of this object. |
protected Value |
getTypeImpl()
Get the type of this object. |
protected void |
populateMemberSet(java.util.Set s,
boolean debugger)
Derived classes that implement getMember(int, boolean) should also
implement this. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Value TYPE
public static final java.lang.String PARENT_TYPE_NAME
public static final java.lang.String TYPE_NAME
public static final java.lang.String[] MEMBER_NAMES
public static final NodeEvaluator EMPTY_EXPR_LIST_EVALUATOR
Constructor Detail |
public OObject()
public OObject(MemberTable args)
args
- arguments to this constructor
PackagedScriptObjectException(Exception)
- if wrong number of argsMethod Detail |
protected Value getTypeImpl()
Value.getType()
.
getTypeImpl
in class Value
public java.lang.String castToString() throws PackagedScriptObjectException
String
value.
castToString
in class Value
PackagedObjectException(NoSuchMethodException)
PackagedScriptObjectException
public Value getMember(int id, boolean exception) throws PackagedScriptObjectException
getMember
in class Value
PackagedScriptObjectException(NoSuchMemberException)
PackagedScriptObjectException
protected void populateMemberSet(java.util.Set s, boolean debugger)
getMember(int, boolean)
should also
implement this.
populateMemberSet
in class Value
s
- the set to populatedebugger
- true
if being used by debugger, in
which case both public and private/protected field names should
be returnedgetMember(int, boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |