java.lang.Object | |
↳ | com.google.gwt.core.client.GWT |
Supports core functionality that in some cases requires direct support from the compiler and runtime systems such as runtime type information and deferred binding.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GWT.UncaughtExceptionHandler | This interface is used to catch exceptions at the "top level" just before they escape to the browser. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | HOSTED_MODE_PERMUTATION_STRONG_NAME | This constant is used by getPermutationStrongName() when running in
Development Mode. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiates a class via deferred binding.
| |||||||||||
Gets the URL prefix of the hosting page, useful for prepending to relative
paths of resources which may be relative to the host page.
| |||||||||||
Gets the URL prefix of the module which should be prepended to URLs that
are intended to be module-relative, such as RPC entry points and files in
the module's public path.
| |||||||||||
Gets the name of the running module.
| |||||||||||
Returns the permutation's strong name.
| |||||||||||
This method is deprecated.
Use
getClass() , getName()
| |||||||||||
Returns the currently active uncaughtExceptionHandler.
| |||||||||||
Returns the empty string when running in Production Mode, but returns a
unique string for each thread in Development Mode (for example, different
windows accessing the dev mode server will each have a unique id, and
hitting refresh without restarting dev mode will result in a new unique id
for a particular window.
| |||||||||||
Returns
true when running inside the normal GWT environment,
either in Development Mode or Production Mode. | |||||||||||
Returns
true when running in production mode. | |||||||||||
Determines whether or not the running program is script or bytecode.
| |||||||||||
Logs a message to the development shell logger in Development Mode.
| |||||||||||
Logs a message to the development shell logger in Development Mode.
| |||||||||||
Run the specified callback once the necessary code for it has been loaded.
| |||||||||||
The same as
runAsync(RunAsyncCallback) , except with an extra
parameter to provide a name for the call. | |||||||||||
Sets a custom uncaught exception handler.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This constant is used by getPermutationStrongName()
when running in
Development Mode.
Instantiates a class via deferred binding.
The argument to create(Class)
must be a class literal
because the Production Mode compiler must be able to statically determine
the requested type at compile-time. This can be tricky because using a
Class
variable may appear to work correctly in Development Mode.
classLiteral | a class literal specifying the base class to be instantiated |
---|
Gets the URL prefix of the hosting page, useful for prepending to relative
paths of resources which may be relative to the host page. Typically, you
should use getModuleBaseURL()
unless you have a specific reason to
load a resource relative to the host page.
Gets the URL prefix of the module which should be prepended to URLs that are intended to be module-relative, such as RPC entry points and files in the module's public path.
Returns the permutation's strong name. This can be used to distinguish between different permutations of the same module. In Development Mode, this method will return {@value #HOSTED_MODE_PERMUTATION_STRONG_NAME}.
Returns the currently active uncaughtExceptionHandler. "Top level" methods
that dispatch events from the browser into user code must call this method
on entry to get the active handler. If the active handler is null, the
entry point must allow exceptions to escape into the browser. If the
handler is non-null, exceptions must be caught and routed to the handler.
See the source code for DOM.dispatchEvent()
for an example
of how to handle this correctly.
Returns the empty string when running in Production Mode, but returns a unique string for each thread in Development Mode (for example, different windows accessing the dev mode server will each have a unique id, and hitting refresh without restarting dev mode will result in a new unique id for a particular window. TODO(unnurg): Remove this function once Dev Mode rewriting classes are in gwt-dev.
Returns true
when running inside the normal GWT environment,
either in Development Mode or Production Mode. Returns false
if this code is running in a plain JVM. This might happen when running
shared code on the server, or during the bootstrap sequence of a
GWTTestCase test.
Returns true
when running in production mode. Returns
false
when running either in development mode, or when running
in a plain JVM.
Determines whether or not the running program is script or bytecode.
Logs a message to the development shell logger in Development Mode. Calls are optimized out in Production Mode.
Logs a message to the development shell logger in Development Mode. Calls are optimized out in Production Mode.
Run the specified callback once the necessary code for it has been loaded.
The same as runAsync(RunAsyncCallback)
, except with an extra
parameter to provide a name for the call. The name parameter should be
supplied with a class literal. No two runAsync calls in the same program
should use the same name.
Sets a custom uncaught exception handler. See
getUncaughtExceptionHandler()
for details.
handler | the handler that should be called when an exception is about
to escape to the browser, or null to clear the
handler and allow exceptions to escape.
|
---|