trait Companion[A <: MLValueWrapper[A]] extends OperationCollection
Base trait for companion objects of classes inheriting from MLValueWrapper. See the class documentation of MLValueWrapper for a usage example.
- Source
- MLValueWrapper.scala
- Alphabetic
- By Inheritance
- Companion
- OperationCollection
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Abstract Value Members
-
abstract
def
instantiate(mlValue: MLValue[A]): A
Must return a new instance of
AwithA.mlValue =mlValue.Must return a new instance of
AwithA.mlValue =mlValue.- Attributes
- protected
-
abstract
val
mlType: String
Must return the ML type corresponding to
A.Must return the ML type corresponding to
A.- Attributes
- protected
Concrete 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
-
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( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
exceptionName(implicit isabelle: Isabelle, ec: ExecutionContext): String
Returns the name of the exception for storing values in the object store.
Returns the name of the exception for storing values in the object store. That is, if
exceptionNamereturnsEXN, then an ML valueaof type mlType is stored in the object store asEXN a. If predefinedException is overwritten, this returns predefinedException. Otherwise it returns a fresh exception name (and ensures that that exception is declared). -
final
def
getClass(): Class[_]
- 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
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
Must return a fresh instance of Ops (with implicit arguments
isabelleandec.Must return a fresh instance of Ops (with implicit arguments
isabelleandec.- Attributes
- protected
- Definition Classes
- Companion → OperationCollection
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
val
predefinedException: String
Must return the name of the exception for storing ML values of type mlType in the object store in the Isabelle process.
Must return the name of the exception for storing ML values of type mlType in the object store in the Isabelle process. If not overwritten, the exception will be generated automatically. If overwritten, the overriding class needs to ensure that the exception is actually declared in the ML toplevel.
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )
-
implicit
object
converter extends Converter[A]
The MLValue.Converter for
A.The MLValue.Converter for
A. Import this as an implicit to support using objects of typeAin MLFunctions etc.