| java.lang.Object org.mozilla.javascript.NativeJavaObject
All known Subclasses: org.mozilla.javascript.NativeJavaArray, org.mozilla.javascript.NativeJavaClass,
Method Summary | |
public static boolean | canConvert(Object fromObj, Class to) Determine whether we can/should convert between the given type and the
desired one. | public static Object | coerceType(Class type, Object value) Not intended for public use. | static Object | coerceTypeImpl(Class type, Object value) Type-munging for field setting and method invocation. | public void | delete(String name) | public void | delete(int index) | public Object | get(String name, Scriptable start) | public Object | get(int index, Scriptable start) | public String | getClassName() | static int | getConversionWeight(Object fromObj, Class to) Derive a ranking based on how "natural" the conversion is. | public Object | getDefaultValue(Class hint) | public Object[] | getIds() | public Scriptable | getParentScope() Returns the parent (enclosing) scope of the object. | public Scriptable | getPrototype() | static int | getSizeRank(Class aType) | public boolean | has(String name, Scriptable start) | public boolean | has(int index, Scriptable start) | public boolean | hasInstance(Scriptable value) | protected void | initMembers() | public void | put(String name, Scriptable start, Object value) | public void | put(int index, Scriptable start, Object value) | static void | reportConversionError(Object value, Class type) | public void | setParentScope(Scriptable m) Sets the parent (enclosing) scope of the object. | public void | setPrototype(Scriptable m) Sets the prototype of the object. | public Object | unwrap() | public static Object | wrap(Scriptable scope, Object obj, Class staticType) |
CONVERSION_NONE | final static byte CONVERSION_NONE(Code) | | |
CONVERSION_NONTRIVIAL | final static byte CONVERSION_NONTRIVIAL(Code) | | |
CONVERSION_TRIVIAL | final static byte CONVERSION_TRIVIAL(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
NativeJavaObject | public NativeJavaObject()(Code) | | |
canConvert | public static boolean canConvert(Object fromObj, Class to)(Code) | | 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.
|
coerceTypeImpl | static Object coerceTypeImpl(Class type, Object value)(Code) | | Type-munging for field setting and method invocation.
Conforms to LC3 specification
|
delete | public void delete(int index)(Code) | | |
getConversionWeight | static int getConversionWeight(Object fromObj, Class to)(Code) | | Derive a ranking based on how "natural" the conversion is.
The special value CONVERSION_NONE means no conversion is possible,
and CONVERSION_NONTRIVIAL signals that more type conformance testing
is required.
Based on
"preferred method conversions" from Live Connect 3
|
getParentScope | public Scriptable getParentScope()(Code) | | Returns the parent (enclosing) scope of the object.
|
initMembers | protected void initMembers()(Code) | | |
reportConversionError | static void reportConversionError(Object value, Class type)(Code) | | |
setParentScope | public void setParentScope(Scriptable m)(Code) | | Sets the parent (enclosing) scope of the object.
|
setPrototype | public void setPrototype(Scriptable m)(Code) | | Sets the prototype of the object.
|
|
|