Top Inners Fields Constructors Methods
com.sun.webkit.dom

pack-priv Class JSObject

extends JSObject
Class Inheritance
Imports
com.sun.webkit.Disposer, .DisposerRecord, .Invoker, java.util.concurrent.atomic.AtomicInteger, netscape.javascript.JSException

References Deprecated

JSObject is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Object
pack-priv static final int
pack-priv static final int
pack-priv static final int
private final long
private final int
private static AtomicInteger
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv
JSObject(long peer, int peer_type)

Method Summary

Modifier and TypeMethod and Description
public Object
call(String methodName, Object... args)

Implements abstract netscape.javascript.JSObject.call.

Calls a JavaScript method.

private static native Object
callImpl(long peer, int peer_type, String methodName, Object[] args, Object acc)

public boolean
equals(Object other)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public Object
eval(String s)

Implements abstract netscape.javascript.JSObject.eval.

Evaluates a JavaScript expression.

private static native Object
evalImpl(long peer, int peer_type, String name)

private static JSException
fwkMakeException(Object value)
References Deprecated JSException is deprecated or references (maybe indirectly) at least one deprecated element.

public Object
getMember(String name)

Implements abstract netscape.javascript.JSObject.getMember.

Retrieves a named member of a JavaScript object.

private static native Object
getMemberImpl(long peer, int peer_type, String name)

pack-priv long
public Object
getSlot(int index)

Implements abstract netscape.javascript.JSObject.getSlot.

Retrieves an indexed member of a JavaScript object.

private static native Object
getSlotImpl(long peer, int peer_type, int index)

public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public void
removeMember(String name)

Implements abstract netscape.javascript.JSObject.removeMember.

Removes a named member of a JavaScript object.

private static native void
removeMemberImpl(long peer, int peer_type, String name)

public void
setMember(String name, Object value)

Implements abstract netscape.javascript.JSObject.setMember.

Sets a named member of a JavaScript object.

private static native void
setMemberImpl(long peer, int peer_type, String name, Object value, Object acc)

public void
setSlot(int index, Object value)

Implements abstract netscape.javascript.JSObject.setSlot.

Sets an indexed member of a JavaScript object.

private static native void
setSlotImpl(long peer, int peer_type, int index, Object value, Object acc)

pack-priv static int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

private static native String
toStringImpl(long peer, int peer_type)

private static native void
unprotectImpl(long peer, int peer_type)

Field Detail

DUMMY_ACCback to summary
private static final Object DUMMY_ACC
JS_CONTEXT_OBJECTback to summary
pack-priv static final int JS_CONTEXT_OBJECT
JS_DOM_NODE_OBJECTback to summary
pack-priv static final int JS_DOM_NODE_OBJECT
JS_DOM_WINDOW_OBJECTback to summary
pack-priv static final int JS_DOM_WINDOW_OBJECT
peerback to summary
private final long peer
peer_typeback to summary
private final int peer_type
peerCountback to summary
private static AtomicInteger peerCount
UNDEFINEDback to summary
private static final String UNDEFINED

Constructor Detail

JSObjectback to summary
pack-priv JSObject(long peer, int peer_type)

Method Detail

callback to summary
public Object call(String methodName, Object... args) throws JSException

Implements abstract netscape.javascript.JSObject.call.

Doc from netscape.javascript.JSObject.call.

Calls a JavaScript method. Equivalent to "this.methodName(args[0], args[1], ...)" in JavaScript.

Annotations
@Override
Exceptions
JSException:
when an error is reported from the browser or JavaScript engine.
callImplback to summary
private static native Object callImpl(long peer, int peer_type, String methodName, Object[] args, Object acc)
equalsback to summary
public boolean equals(Object other)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Annotations
@Override
evalback to summary
public Object eval(String s) throws JSException

Implements abstract netscape.javascript.JSObject.eval.

Doc from netscape.javascript.JSObject.eval.

Evaluates a JavaScript expression. The expression is a string of JavaScript source code which will be evaluated in the context given by "this".

Annotations
@Override
Exceptions
JSException:
when an error is reported from the browser or JavaScript engine.
evalImplback to summary
private static native Object evalImpl(long peer, int peer_type, String name)
fwkMakeExceptionback to summary
private static JSException fwkMakeException(Object value)

References Deprecated

JSException is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getMemberback to summary
public Object getMember(String name)

Implements abstract netscape.javascript.JSObject.getMember.

Doc from netscape.javascript.JSObject.getMember.

Retrieves a named member of a JavaScript object. Equivalent to "this.name" in JavaScript.

Annotations
@Override
getMemberImplback to summary
private static native Object getMemberImpl(long peer, int peer_type, String name)
getPeerback to summary
pack-priv long getPeer()
getSlotback to summary
public Object getSlot(int index) throws JSException

Implements abstract netscape.javascript.JSObject.getSlot.

Doc from netscape.javascript.JSObject.getSlot.

Retrieves an indexed member of a JavaScript object. Equivalent to "this[index]" in JavaScript.

Annotations
@Override
Exceptions
JSException:
when an error is reported from the browser or JavaScript engine.
getSlotImplback to summary
private static native Object getSlotImpl(long peer, int peer_type, int index)
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
removeMemberback to summary
public void removeMember(String name) throws JSException

Implements abstract netscape.javascript.JSObject.removeMember.

Doc from netscape.javascript.JSObject.removeMember.

Removes a named member of a JavaScript object. Equivalent to "delete this.name" in JavaScript.

Annotations
@Override
Exceptions
JSException:
when an error is reported from the browser or JavaScript engine.
removeMemberImplback to summary
private static native void removeMemberImpl(long peer, int peer_type, String name)
setMemberback to summary
public void setMember(String name, Object value) throws JSException

Implements abstract netscape.javascript.JSObject.setMember.

Doc from netscape.javascript.JSObject.setMember.

Sets a named member of a JavaScript object. Equivalent to "this.name = value" in JavaScript.

Annotations
@Override
Exceptions
JSException:
when an error is reported from the browser or JavaScript engine.
setMemberImplback to summary
private static native void setMemberImpl(long peer, int peer_type, String name, Object value, Object acc)
setSlotback to summary
public void setSlot(int index, Object value) throws JSException

Implements abstract netscape.javascript.JSObject.setSlot.

Doc from netscape.javascript.JSObject.setSlot.

Sets an indexed member of a JavaScript object. Equivalent to "this[index] = value" in JavaScript.

Annotations
@Override
Exceptions
JSException:
when an error is reported from the browser or JavaScript engine.
setSlotImplback to summary
private static native void setSlotImpl(long peer, int peer_type, int index, Object value, Object acc)
test_getPeerCountback to summary
pack-priv static int test_getPeerCount()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
toStringImplback to summary
private static native String toStringImpl(long peer, int peer_type)
unprotectImplback to summary
private static native void unprotectImpl(long peer, int peer_type)
com.sun.webkit.dom back to summary

private final Class JSObject.SelfDisposer

extends Object
implements DisposerRecord
Class Inheritance
All Implemented Interfaces
com.sun.webkit.DisposerRecord

Field Summary

Modifier and TypeField and Description
pack-priv long
pack-priv final int

Constructor Summary

AccessConstructor and Description
private
SelfDisposer(long peer, int peer_type)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

peerback to summary
pack-priv long peer
peer_typeback to summary
pack-priv final int peer_type

Constructor Detail

SelfDisposerback to summary
private SelfDisposer(long peer, int peer_type)

Method Detail

disposeback to summary
public void dispose()

Implements com.sun.webkit.DisposerRecord.dispose.

Annotations
@Override