public interface JSPackage extends JSBundleObject
Modifier and Type | Method and Description |
---|---|
JSBundle |
getJSBundle()
Returns the NPM package's bundle.
|
java.util.Collection<JSModuleAlias> |
getJSModuleAliases() |
java.util.Collection<JSModule> |
getJSModules()
Returns the NPM modules contained inside the NPM package.
|
java.util.Collection<JSPackageDependency> |
getJSPackageDependencies()
Returns the dependencies (i.e., other NPM packages) declared by the NPM
package.
|
JSPackageDependency |
getJSPackageDependency(java.lang.String packageName)
Returns the NPM package's dependency (i.e., another NPM package) with the
package name.
|
java.lang.String |
getMainModuleName()
Returns the default module's name declared by the NPM package.
|
java.lang.String |
getResolvedId() |
java.net.URL |
getResourceURL(java.lang.String location)
Returns the resource's URL residing in the NPM package.
|
java.lang.String |
getVersion()
Returns the package's NPM version.
|
getId, getName
JSBundle getJSBundle()
java.util.Collection<JSModuleAlias> getJSModuleAliases()
java.util.Collection<JSModule> getJSModules()
java.util.Collection<JSPackageDependency> getJSPackageDependencies()
JSPackageDependency getJSPackageDependency(java.lang.String packageName)
packageName
- the package namenull
if no dependency with
the name existsjava.lang.String getMainModuleName()
java.lang.String getResolvedId()
java.net.URL getResourceURL(java.lang.String location)
location
- the resource's pathjava.lang.String getVersion()