class ScalaInterpreter extends Publisher[InterpreterEvent]
Wrapper for scala interpreter. Publishes events when output is printed to standard output, standard error, and to interpreter log.
Publishes events: StateEvent, OutStreamEvent, ErrStreamEvent, InterpreterLogEvent, ResultEvent.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ScalaInterpreter
- Publisher
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ScalaInterpreter()
Type Members
- type Filter = (InterpreterEvent) => Boolean
- Definition Classes
- Publisher
- abstract type Pub <: Publisher[InterpreterEvent]
- Definition Classes
- Publisher
- type Sub = Subscriber[InterpreterEvent, Pub]
- Definition Classes
- Publisher
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 activateSubscription(sub: Sub): Unit
- Definition Classes
- Publisher
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(obj: Any): Boolean
Checks if two publishers are structurally identical.
Checks if two publishers are structurally identical.
- returns
true, iff both publishers contain the same sequence of elements.
- Definition Classes
- Publisher → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def publish(event: InterpreterEvent): Unit
- Attributes
- protected
- Definition Classes
- Publisher
- def removeSubscription(sub: Sub): Unit
- Definition Classes
- Publisher
- def removeSubscriptions(): Unit
- Definition Classes
- Publisher
- def run(code: String): Unit
Interpret
code
Interpret
code
- code
actual text of the code to be interpreted.
- val self: Pub
The publisher itself of type
Pub
.The publisher itself of type
Pub
. Implemented by a cast fromthis
here. Needs to be overridden if the actual publisher is different fromthis
.- Attributes
- protected
- Definition Classes
- Publisher
- def subscribe(sub: Sub, filter: Filter): Unit
- Definition Classes
- Publisher
- def subscribe(sub: Sub): Unit
- Definition Classes
- Publisher
- def suspendSubscription(sub: Sub): Unit
- Definition Classes
- Publisher
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()