net.sourceforge.htmlunit.corejs.javascript.commonjs.module.ModuleScope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-client-compiler-deps Show documentation
Show all versions of vaadin-client-compiler-deps Show documentation
Vaadin is a web application framework for Rich Internet Applications (RIA).
Vaadin enables easy development and maintenance of fast and
secure rich web
applications with a stunning look and feel and a wide browser support.
It features a server-side architecture with the majority of the logic
running
on the server. Ajax technology is used at the browser-side to ensure a
rich
and interactive user experience.
package net.sourceforge.htmlunit.corejs.javascript.commonjs.module;
import net.sourceforge.htmlunit.corejs.javascript.Scriptable;
import net.sourceforge.htmlunit.corejs.javascript.TopLevel;
import java.net.URI;
/**
* A top-level module scope. This class provides methods to retrieve the
* module's source and base URIs in order to resolve relative module IDs
* and check sandbox constraints.
*/
public class ModuleScope extends TopLevel {
private static final long serialVersionUID = 1L;
private final URI uri;
private final URI base;
public ModuleScope(Scriptable prototype, URI uri, URI base) {
this.uri = uri;
this.base = base;
setPrototype(prototype);
cacheBuiltins();
}
public URI getUri() {
return uri;
}
public URI getBase() {
return base;
}
}