public interface SarlSpecificationChecker
Modifier and Type | Method and Description |
---|---|
default int |
compareToSarlSpecificationVersion(type : Class<?>)
Compare the SARL specification version associated to the given type to the version of the
current SARL.
|
default float |
getSarlSpecificationVersion(type : Class<?>)
Deprecated.
since 0.10, see #getSarlSpecificationVersionObject(Class)
|
default org.osgi.framework.Version |
getSarlSpecificationVersionObject(type : Class<?>)
Replies the supported SARL specification version of the given type.
|
default boolean |
isValidSarlElement(type : Class<?>)
Replies if the given type is a SARL element that is following the specification of the current SARL version.
|
@Deprecated
@Pure
default def
getSarlSpecificationVersion(type : Class<?>) : float
SarlSpecificationChecker
type
- the type from which the SARL specification version should be extracted.SARLVersion#SPECIFICATION_RELEASE_VERSION
. The value Float.NaN
is replied
if the given type has no marker related to the SARL specification version.@Pure
default def
getSarlSpecificationVersionObject(type : Class<?>) : org.osgi.framework.Version
SarlSpecificationChecker
type
- the type from which the SARL specification version should be extracted.Version
, as for
SARLVersion.SPECIFICATION_RELEASE_VERSION_STRING
. The value null
is replied
if the given type has no marker related to the SARL specification version.default def
compareToSarlSpecificationVersion(type : Class<?>) : int
SarlSpecificationChecker
type
- the type to test.@Pure
default def
isValidSarlElement(type : Class<?>) : boolean
SarlSpecificationChecker
type
- the type to test.true
if the given type follows the specification of the current version.Copyright © 2021 the original authors or authors.