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
- Alphabetic
- By Inheritance
- Version
- OperationCollection
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- 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.
- 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 ofObsis created (using theecfrom 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- 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.
- 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.
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def init()(implicit isabelle: Isabelle, executionContext: ExecutionContext): Unit
Makes sure an Ops instance for the instance
isabelleis initialized.Makes sure an Ops instance for the instance
isabelleis 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
isabelleand/orexecutionContext.- Definition Classes
- OperationCollection
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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
- Version → OperationCollection
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def rc(implicit isabelle: Isabelle, ec: ExecutionContext): Int
Number of the release candidate.
Number of the release candidate.
E.g.,
Isabelle2020-RC4would haverc=4. If this is not a release candidate,rc=NOT_RC. - def step(implicit isabelle: Isabelle, ec: ExecutionContext): Int
The version within the current year.
The version within the current year.
E.g.
Isabelle2020would havestep=0, andIsabelle2020-1would havestep=1. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
IsabelleMiscExceptionif the version cannot be determined
- 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). - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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.