public class PackageManager extends Object implements ParsingScope
| Constructor and Description |
|---|
PackageManager(NameChooserProvider nameChooserProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(PackageManager packageManager) |
void |
addJarPathLocation(File jarPathLocation)
Adds a location where the package loader should look for Sopremo Jars.
|
protected List<File> |
findPackageInClassPath(String packageName) |
protected File |
findPackageInJarPathLocations(String packageName) |
IConstantRegistry |
getConstantRegistry() |
IConfObjectRegistry<SopremoFormat> |
getFileFormatRegistry()
Returns the fileFormatRegistries.
|
IFunctionRegistry |
getFunctionRegistry() |
Collection<PackageInfo> |
getImportedPackages()
Returns the names of the imported packages.
|
protected static String |
getJarFileNameForPackageName(String packageName) |
List<File> |
getJarPathLocations()
Returns the jarPathLocations.
|
IConfObjectRegistry<Operator<?>> |
getOperatorRegistry()
Returns the operatorFactory.
|
PackageInfo |
getPackageInfo(String packageName)
Imports sopremo-<packageName>.jar or returns a cached package
structure.
|
StackedTypeRegistry |
getTypeRegistry()
Returns the typeRegistries.
|
void |
importPackage(PackageInfo packageInfo) |
void |
importPackage(String packageName) |
void |
importPackageFrom(String packageName,
File jarFile) |
String |
toString() |
public PackageManager(NameChooserProvider nameChooserProvider)
public void addAll(PackageManager packageManager)
public void addJarPathLocation(File jarPathLocation)
jarPathLocation - the defaultJarPath to setpublic IConstantRegistry getConstantRegistry()
getConstantRegistry in interface EvaluationScopepublic IConfObjectRegistry<SopremoFormat> getFileFormatRegistry()
getFileFormatRegistry in interface ParsingScopepublic IFunctionRegistry getFunctionRegistry()
getFunctionRegistry in interface EvaluationScopepublic Collection<PackageInfo> getImportedPackages()
public List<File> getJarPathLocations()
public IConfObjectRegistry<Operator<?>> getOperatorRegistry()
getOperatorRegistry in interface ParsingScopepublic PackageInfo getPackageInfo(String packageName)
packageName - public StackedTypeRegistry getTypeRegistry()
getTypeRegistry in interface EvaluationScopepublic void importPackage(PackageInfo packageInfo)
public void importPackage(String packageName)
Copyright © 2011–2014. All rights reserved.