Packages

object Version extends OperationCollection

Version information for the Isabelle process.

All methods take the Isabelle process as an implicit parameter. The integers year, step, rc are chosen such that (year,step,rc) is increasing lexicographically if the version increases. (Development releases are currently not supported and may break this ordering.)

Source
Version.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Version
  2. OperationCollection
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. class Ops extends AnyRef
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final val INVALID_YEAR: Int(99998)

    Value for year that indicates that the version could not be determined.

    Value for year that indicates that the version could not be determined. Guaranteed to be larger than any correct year value

  5. final val NOT_RC: Int(99999)

    Value for rc that represents that the version is not a release candidate.

    Value for rc that represents that the version is not a release candidate. Guaranteed to be larger than any release candidate number.

  6. def Ops(implicit isabelle: Isabelle, ec: ExecutionContext): Ops

    Returns an instance of type Ops.

    Returns an instance of type Ops. It is guaranteed that for each instance isabelle, exactly one instance of Obs is created (using the ec from the first such invocation). (If you see this doc string in a class different from OperationCollection but no definition of the class Ops, treat this function as if it was private.)

    Definition Classes
    OperationCollection
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def from2020(implicit isabelle: Isabelle, ec: ExecutionContext): Boolean

    True, if the current version is at least Isabelle2020 (including the release candidates).

    True, if the current version is at least Isabelle2020 (including the release candidates).

    Unspecified behavior on development versions.

  12. def from2021(implicit isabelle: Isabelle, ec: ExecutionContext): Boolean

    True, if the current version is at least Isabelle2021 (including the release candidates).

    True, if the current version is at least Isabelle2021 (including the release candidates).

    Unspecified behavior on development versions.

  13. def from2021_1(implicit isabelle: Isabelle, ec: ExecutionContext): Boolean

    True, if the current version is at least Isabelle2021-1 (including the release candidates).

    True, if the current version is at least Isabelle2021-1 (including the release candidates).

    Unspecified behavior on development versions.

  14. def from2022(implicit isabelle: Isabelle, ec: ExecutionContext): Boolean

    True, if the current version is at least Isabelle2022 (including the release candidates).

    True, if the current version is at least Isabelle2022 (including the release candidates).

    Unspecified behavior on development versions.

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def init()(implicit isabelle: Isabelle, executionContext: ExecutionContext): Unit

    Makes sure an Ops instance for the instance isabelle is initialized.

    Makes sure an Ops instance for the instance isabelle is initialized. This is useful when code needs to be sure that the global initialization inside the Ops class has happened (e.g., declarations of ML types via Isabelle.executeMLCodeNow) even if it does not access any of the fields in the Ops class.

    Can safely be called several times with the same isabelle and/or executionContext.

    Definition Classes
    OperationCollection
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def newOps(implicit isabelle: Isabelle, ec: ExecutionContext): Ops

    Should construct an instance of type Ops

    Should construct an instance of type Ops

    Attributes
    protected
    Definition Classes
    VersionOperationCollection
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. def rc(implicit isabelle: Isabelle, ec: ExecutionContext): Int

    Number of the release candidate.

    Number of the release candidate.

    E.g., Isabelle2020-RC4 would have rc=4. If this is not a release candidate, rc=NOT_RC.

  24. def step(implicit isabelle: Isabelle, ec: ExecutionContext): Int

    The version within the current year.

    The version within the current year.

    E.g. Isabelle2020 would have step=0, and Isabelle2020-1 would have step=1.

  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def versionFromIsabelleDirectory(directory: Path): String

    Guesses the version by inspecting the Isabelle home directory.

    Guesses the version by inspecting the Isabelle home directory. (A string such as "2021-1-RC2".) Compared from versionString, this does not need the Isabelle process to start up fully. (Starting up may fail if the version is wrong because startup may build an Isabelle heap from theories for a different version first, depending on the setup.)

    Exceptions thrown

    IsabelleMiscException if the version cannot be determined

  28. def versionString(implicit isabelle: Isabelle, ec: ExecutionContext): String

    The Isabelle version string (e.g., "Isabelle2020: April 2020").

    The Isabelle version string (e.g., "Isabelle2020: April 2020"). "dev" if the version string cannot be obtained (usually the case with Isabelle running directly from the development repository).

  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. def year(implicit isabelle: Isabelle, ec: ExecutionContext): Int

    The year of this Isabelle version (e.g., 2020).

    The year of this Isabelle version (e.g., 2020).

    If the version string could not be parsed, returns INVALID_YEAR.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from OperationCollection

Inherited from AnyRef

Inherited from Any

Ungrouped