final class ToplevelState extends MLValueWrapper[ToplevelState]
Represents a toplevel state (the state when processing an Isar .thy document). ML type: Toplevel.state
An instance of this class is merely a thin wrapper around an MLValue, all explanations and examples given for Context also apply here.
An implict MLValue.Converter can be imported from Implicits._. The representation
of a toplevel state state as an ML exception is E_ToplevelState state.
- Source
- ToplevelState.scala
- Alphabetic
- By Inheritance
- ToplevelState
- MLValueWrapper
- FutureValue
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
await: Unit
Blocks until this future value is computed.
Blocks until this future value is computed. (Or throws an exception if the computation fails.)
- Definition Classes
- MLValueWrapper → FutureValue
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
context(implicit isabelle: Isabelle): Context
Returns the proof context corresponding to this toplevel state (ML function
Toplevel.context_of). -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
force: ToplevelState.this.type
Waits till the computation of this value (in the Isabelle process) has finished.
Waits till the computation of this value (in the Isabelle process) has finished. (Or until an exception is thrown.)
- returns
this value, but it is guaranteed to have completed the computation
- Definition Classes
- FutureValue
-
def
forceFuture(implicit isabelle: Isabelle): Future[ToplevelState.this.type]
A future containing this object with the computation completed.
A future containing this object with the computation completed. In particular, if this value throws an exception upon computation, the future holds that exception.
- Definition Classes
- FutureValue
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
isEndTheory(implicit isabelle: Isabelle): Boolean
Returns whether the state is after a theory "end".
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isLocalTheoryMode(implicit isabelle: Isabelle): Boolean
Returns whether the state is in local theory mode.
-
def
isProofMode(implicit isabelle: Isabelle): Boolean
Returns whether the state is in proof (non-skipped) mode.
-
def
isSkippedMode(implicit isabelle: Isabelle): Boolean
Returns whether the state is in skipped-proof mode.
-
def
isTheoryMode(implicit isabelle: Isabelle): Boolean
Returns whether the state is in theory mode, global or local.
-
def
isTopLevelMode(implicit isabelle: Isabelle): Boolean
Returns whether the state is in top-level mode, meaning outside a theory (before "theory ..
Returns whether the state is in top-level mode, meaning outside a theory (before "theory .. begin" or after "end").
-
def
localTheoryDescription(implicit isabelle: Isabelle): String
Description of the current local theory, like "theory Foo" or "locale foo", or "class foo = ...".
-
val
mlValue: MLValue[ToplevelState]
An MLValue referencing
this(in the Isabelle process).An MLValue referencing
this(in the Isabelle process). Sincethisis just a thin wrapper around an MLValue, mlValue carries exactly the same data asthisand can be converted back and forth quickly (no transfer of data to/from the Isabelle process involved).Same as MLValue
(this), assuming the correct MLValue.Converter from the companion object forAis imported.- Definition Classes
- ToplevelState → MLValueWrapper
-
def
mode(implicit isabelle: Isabelle): Mode
Returns the mode of the state (roughly similar to ML function
Toplevel.str_of_state). -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
def
proofLevel(implicit isabelle: Isabelle): Int
Returns the proof level of this state (number of opened blocks, ML function
Toplevel.level).Returns the proof level of this state (number of opened blocks, ML function
Toplevel.level). Zero when outside of proofs. For Skipped_Proof, this is instead the depth (plus one). -
def
proofStateDescription(implicit isabelle: Isabelle): String
Description of the current proof state (often starting like "proof (prove) goal (1 subgoal):").
-
def
someFuture: Future[Any]
Returns a future that completes when the computation of this object is complete.
Returns a future that completes when the computation of this object is complete. (Or that holds an exception if that computation throws an exception.) However, upon successful completion, the future may return an arbitrary (and thus useless) value. May be faster to implement than forceFuture because there may be already a future available but that returns the wrong value.
- Definition Classes
- MLValueWrapper → FutureValue
-
def
stateString: String
A utility method that returns "" if this value was successfully computed, " (computing)" if it still computes, and " (failed)" if it finished with an exception.
A utility method that returns "" if this value was successfully computed, " (computing)" if it still computes, and " (failed)" if it finished with an exception.
This can be useful to constructing human readable messages about this value.
- Definition Classes
- FutureValue
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
theory(implicit isabelle: Isabelle): Theory
Returns the theory corresponding to this toplevel state (ML function
Toplevel.theory_of). -
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )