Interface NativeCodeDescription
-
- All Superinterfaces:
BaseDescription,Comparable<NativeCodeDescription>
public interface NativeCodeDescription extends BaseDescription, Comparable<NativeCodeDescription>
This class represents a native code description.This interface is not intended to be implemented by clients. The
StateObjectFactoryshould be used to construct instances.- Since:
- 3.4
- Restriction:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcompareTo(NativeCodeDescription other)Native code descriptions are sorted with the following preferences: The minimum version of the os version ranges The languageFiltergetFilter()Returns the selection filter used to select the native code.String[]getLanguages()Returns the languages supported by the native code.String[]getNativePaths()Returns the paths to the native code libraries.String[]getOSNames()Returns the operating system names supported by the native code.VersionRange[]getOSVersions()Returns the operating system version ranges supported by the native code.String[]getProcessors()Returns the processors supported by the native code.booleanhasInvalidNativePaths()Indicates if this native code description has invalid native code paths.-
Methods inherited from interface org.eclipse.osgi.service.resolver.BaseDescription
getCapability, getDeclaredAttributes, getDeclaredDirectives, getName, getSupplier, getUserObject, getVersion, setUserObject
-
-
-
-
Method Detail
-
getNativePaths
String[] getNativePaths()
Returns the paths to the native code libraries.- Returns:
- the paths to the native code libraries.
-
getProcessors
String[] getProcessors()
Returns the processors supported by the native code.- Returns:
- the processors supported by the native code. An empty array is returned if no processors are supported.
-
getOSNames
String[] getOSNames()
Returns the operating system names supported by the native code.- Returns:
- the operating system names supported by the native code. An empty array is returned if no operating systems are supported.
-
getOSVersions
VersionRange[] getOSVersions()
Returns the operating system version ranges supported by the native code.- Returns:
- the operating system version ranges supported by the native code. An empty array is returned if all versions are supported.
-
getLanguages
String[] getLanguages()
Returns the languages supported by the native code.- Returns:
- the languages supported by the native code. An empty array is returned if all languages are supported.
-
getFilter
Filter getFilter()
Returns the selection filter used to select the native code.- Returns:
- the selection filter used to select the native code.
-
compareTo
int compareTo(NativeCodeDescription other)
Native code descriptions are sorted with the following preferences:- The minimum version of the os version ranges
- The language
- Specified by:
compareToin interfaceComparable<NativeCodeDescription>- Parameters:
other- the native code description to be compared- Returns:
- a negative integer, zero, or a positive integer as this natve code description is less than, equal to, or greater than the specified object.
- Since:
- 3.7
-
hasInvalidNativePaths
boolean hasInvalidNativePaths()
Indicates if this native code description has invalid native code paths. Native code paths are invalid if they can not be found in the bundle content.- Returns:
- true if the native code paths are invalid; otherwise false is returned.
-
-