scala.tools.nsc.interpreter.session.History.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-compiler Show documentation
Show all versions of scala-compiler Show documentation
Compiler for the Scala Programming Language
/* NSC -- new Scala compiler
* Copyright 2005-2013 LAMP/EPFL
* @author Paul Phillips
*/
package scala.tools.nsc
package interpreter
package session
/** An implementation-agnostic history interface which makes no
* reference to the jline classes. Very sparse right now.
*/
trait History {
def asStrings: List[String]
def index: Int
def size: Int
def grep(s: String): List[String]
}
object NoHistory extends History {
def asStrings = Nil
def grep(s: String) = Nil
def index = 0
def size = 0
}
object History {
def empty: History = NoHistory
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy