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 ofObs
is created (using theec
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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/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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def rc(implicit isabelle: Isabelle, ec: ExecutionContext): Int
Number of the release candidate.
Number of the release candidate.
E.g.,
Isabelle2020-RC4
would 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.
Isabelle2020
would havestep=0
, andIsabelle2020-1
would havestep=1
. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def versionString(implicit isabelle: Isabelle, ec: ExecutionContext): String
The Isabelle version string (e.g.,
"Isabelle2020: April 2020"
) - 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.