| java.lang.Object org.mozilla.javascript.NativeJavaObject org.mozilla.javascript.NativeJavaClass
NativeJavaClass | public class NativeJavaClass extends NativeJavaObject implements Function(Code) | | This class reflects Java classes into the JavaScript environment, mainly
for constructors and static members. We lazily reflect properties,
and currently do not guarantee that a single j.l.Class is only
reflected once into the JS environment, although we should.
The only known case where multiple reflections
are possible occurs when a j.l.Class is wrapped as part of a
method return or property access, rather than by walking the
Packages/java tree.
author: Mike Shaver See Also: NativeJavaArray See Also: NativeJavaObject See Also: NativeJavaPackage |
Method Summary | |
public Object | call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) | public Scriptable | construct(Context cx, Scriptable scope, Object[] args) | static Scriptable | constructSpecific(Context cx, Scriptable scope, Object[] args, MemberBox ctor) | public Object | get(String name, Scriptable start) | public String | getClassName() | public Class | getClassObject() | public Object | getDefaultValue(Class hint) | public Object[] | getIds() | public boolean | has(String name, Scriptable start) | public boolean | hasInstance(Scriptable value) Determines if prototype is a wrapped Java object and performs
a Java "instanceof". | protected void | initMembers() | public void | put(String name, Scriptable start, Object value) | public String | toString() |
javaClassPropertyName | final static String javaClassPropertyName(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
NativeJavaClass | public NativeJavaClass()(Code) | | |
hasInstance | public boolean hasInstance(Scriptable value)(Code) | | Determines if prototype is a wrapped Java object and performs
a Java "instanceof".
Exception: if value is an instance of NativeJavaClass, it isn't
considered an instance of the Java class; this forestalls any
name conflicts between java.lang.Class's methods and the
static methods exposed by a JavaNativeClass.
|
initMembers | protected void initMembers()(Code) | | |
Methods inherited from org.mozilla.javascript.NativeJavaObject | public static boolean canConvert(Object fromObj, Class to)(Code)(Java Doc) public static Object coerceType(Class type, Object value)(Code)(Java Doc) static Object coerceTypeImpl(Class type, Object value)(Code)(Java Doc) public void delete(String name)(Code)(Java Doc) public void delete(int index)(Code)(Java Doc) public Object get(String name, Scriptable start)(Code)(Java Doc) public Object get(int index, Scriptable start)(Code)(Java Doc) public String getClassName()(Code)(Java Doc) static int getConversionWeight(Object fromObj, Class to)(Code)(Java Doc) public Object getDefaultValue(Class hint)(Code)(Java Doc) public Object[] getIds()(Code)(Java Doc) public Scriptable getParentScope()(Code)(Java Doc) public Scriptable getPrototype()(Code)(Java Doc) static int getSizeRank(Class aType)(Code)(Java Doc) public boolean has(String name, Scriptable start)(Code)(Java Doc) public boolean has(int index, Scriptable start)(Code)(Java Doc) public boolean hasInstance(Scriptable value)(Code)(Java Doc) protected void initMembers()(Code)(Java Doc) public void put(String name, Scriptable start, Object value)(Code)(Java Doc) public void put(int index, Scriptable start, Object value)(Code)(Java Doc) static void reportConversionError(Object value, Class type)(Code)(Java Doc) public void setParentScope(Scriptable m)(Code)(Java Doc) public void setPrototype(Scriptable m)(Code)(Java Doc) public Object unwrap()(Code)(Java Doc) public static Object wrap(Scriptable scope, Object obj, Class staticType)(Code)(Java Doc)
|
|
|