Package dev.equo.solstice.p2
Class P2Query
java.lang.Object
dev.equo.solstice.p2.P2Query
Follows the dependency information of a set of
P2Unit so that they
can be installed from maven or directly from p2 if necessary.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds every unit in the session, subject to the query filters.voidExcludes the unit with the given id.voidexcludePrefix(String prefix) Excludes all units whose id start with the given prefix.voidexcludeSuffix(String prefix) Excludes all units whose id end with the given suffix.voidfilterProp(String key, String value) Returns every unit available in the parent session with the given id, possibly multiple versions of the same id.Returns every requirement for which there were multiple providers and no clear winner.Returns all categories.Returns all features.Returns the unit, if any, which has been installed at the given id.getJars()Returns all jars.getJarsNotOnMavenCentral(boolean useMavenCentral) Returns all jars which are not on maven central.getJarsOnMavenCentral(boolean useMavenCentral) Returns all jars which are on maven central.Returns all optional requirements which were not installed, along with every unit which optionally wanted it.getUnitsWithProperty(String key, String value) Returns all units which have the given property set to the given value.getUnitsWithProperty1or2(String key1, String value1, String key2, String value2) Returns all units which have the given property set to the given value.Returns every unmet requirement mapped to the units which needed it.voidResolves the given P2Unit by eagerly traversing all its dependencies.booleanisInstalled(P2Unit unit) Returns true of the given unit was installed.voidplatform(com.diffplug.common.swt.os.SwtPlatform platform) Sets the platform filter to match true against only the given platform.voidSets the platform filter to match true against all platforms.voidSets the platform filter to match true against no platforms.
-
Method Details
-
exclude
Excludes the unit with the given id. -
excludePrefix
Excludes all units whose id start with the given prefix. -
excludeSuffix
Excludes all units whose id end with the given suffix. -
platform
public void platform(com.diffplug.common.swt.os.SwtPlatform platform) Sets the platform filter to match true against only the given platform. -
platformAll
public void platformAll()Sets the platform filter to match true against all platforms. -
platformNone
public void platformNone()Sets the platform filter to match true against no platforms. -
filterProp
-
install
Resolves the given P2Unit by eagerly traversing all its dependencies. -
getInstalledUnitById
Returns the unit, if any, which has been installed at the given id. -
getAllAvailableUnitsById
Returns every unit available in the parent session with the given id, possibly multiple versions of the same id. -
getJars
Returns all jars. -
getFeatures
Returns all features. -
getCategories
Returns all categories. -
getUnitsWithProperty
Returns all units which have the given property set to the given value. -
getUnitsWithProperty1or2
public List<P2Unit> getUnitsWithProperty1or2(String key1, String value1, String key2, String value2) Returns all units which have the given property set to the given value. -
getJarsOnMavenCentral
Returns all jars which are on maven central. -
getJarsNotOnMavenCentral
Returns all jars which are not on maven central. -
addAllUnits
public void addAllUnits()Adds every unit in the session, subject to the query filters. -
getAmbiguousRequirements
Returns every requirement for which there were multiple providers and no clear winner. -
getUnmetRequirements
Returns every unmet requirement mapped to the units which needed it. -
isInstalled
Returns true of the given unit was installed. -
getOptionalRequirementsNotInstalled
Returns all optional requirements which were not installed, along with every unit which optionally wanted it.
-