Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.mozilla.javascript.NativeJavaObject
NativeJavaArray
, NativeJavaPackage
, NativeJavaClass
Field Summary | |
protected Object | |
protected org.mozilla.javascript.JavaMembers | |
protected Scriptable |
|
protected Scriptable |
|
protected Class |
Fields inherited from interface org.mozilla.javascript.Scriptable | |
NOT_FOUND |
Constructor Summary | |
|
Method Summary | |
static boolean |
|
static Object |
|
void |
|
void |
|
Object |
|
Object |
|
String | |
Object |
|
Object[] |
|
Scriptable |
|
Scriptable | |
boolean |
|
boolean |
|
boolean |
|
protected void | |
void |
|
void |
|
void |
|
void |
|
Object |
|
static Object |
|
protected Object javaObject
protected org.mozilla.javascript.JavaMembers members
protected Class staticType
public static boolean canConvert(Object fromObj, Class to)
Determine whether we can/should convert between the given type and the desired one. This should be superceded by a conversion-cost calculation function, but for now I'll hide behind precedent.
public static Object coerceType(Class type, Object value)
Deprecated. as of 1.5 Release 4
Not intended for public use. Callers should use the public API Context.toType.
- See Also:
.
public Object getDefaultValue(Class hint)
- Specified by:
- getDefaultValue in interface Scriptable
public Scriptable getParentScope()
Returns the parent (enclosing) scope of the object.
- Specified by:
- getParentScope in interface Scriptable
public boolean hasInstance(Scriptable value)
- Specified by:
- hasInstance in interface Scriptable
protected void initMembers()
public void put(String name, Scriptable start, Object value)
- Specified by:
- put in interface Scriptable
public void put(int index, Scriptable start, Object value)
- Specified by:
- put in interface Scriptable
public void setParentScope(Scriptable m)
Sets the parent (enclosing) scope of the object.
- Specified by:
- setParentScope in interface Scriptable
public void setPrototype(Scriptable m)
Sets the prototype of the object.
- Specified by:
- setPrototype in interface Scriptable
public static Object wrap(Scriptable scope, Object obj, Class staticType)
Deprecated. Use
Context.getWrapFactory()
together with callingWrapFactory.wrap(Context cx, Scriptable scope, Object obj, Class)