public class JSPackageDependency
extends java.lang.Object
Constructor and Description |
---|
JSPackageDependency(JSPackage jsPackage,
java.lang.String packageName,
java.lang.String versionConstraints)
Constructs a
JSPackageDependency with the JS package,
package name, and version constraints. |
Modifier and Type | Method and Description |
---|---|
JSPackage |
getJSPackage()
Returns the NPM package declaring the dependency.
|
java.lang.String |
getPackageName()
Returns the dependency's package name.
|
java.lang.String |
getVersionConstraints()
Returns the NPM semantic version expression defining the suitable
versions for the dependency.
|
public JSPackageDependency(JSPackage jsPackage, java.lang.String packageName, java.lang.String versionConstraints)
JSPackageDependency
with the JS package,
package name, and version constraints.jsPackage
- the package declaring the dependencypackageName
- the dependency's package nameversionConstraints
- the NPM semantic version expression defining
the suitable versions for the dependencypublic JSPackage getJSPackage()
public java.lang.String getPackageName()
public java.lang.String getVersionConstraints()