interpretersettings.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 74 行
SCALA
74 行
/* NSC -- new Scala compiler * Copyright 2005-2008 LAMP/EPFL * @author Alexander Spoon */// $Id: InterpreterSettings.scala 14416 2008-03-19 01:17:25Z mihaylov $package scala.tools.nsc/** Settings for the interpreter * * @version 1.0 * @author Lex Spoon, 2007/3/24 **/class InterpreterSettings { /** A list of paths where :load should look */ var loadPath = List(".") /** The maximum length of toString to use when printing the result * of an evaluation. 0 means no maximum. If a printout requires * more than this number of characters, then the printout is * truncated. */ var maxPrintString = 390 override def toString = "InterpreterSettings {\n" +// " loadPath = " + loadPath + "\n" + " maxPrintString = " + maxPrintString + "\n" + "}"}/* Utilities for the InterpreterSettings class * * @version 1.0 * @author Lex Spoon, 2007/5/24 */object InterpreterSettings { /** Source code for the InterpreterSettings class. This is * used so that the interpreter is sure to have the code * available. */ val sourceCodeForClass ="""package scala.tools.nsc/** Settings for the interpreter * * @version 1.0 * @author Lex Spoon, 2007/3/24 **/class InterpreterSettings { /** A list of paths where :load should look */ var loadPath = List(".") /** The maximum length of toString to use when printing the result * of an evaluation. 0 means no maximum. If a printout requires * more than this number of characters, then the printout is * truncated. */ var maxPrintString = 390 override def toString = "InterpreterSettings {\n" +// " loadPath = " + loadPath + "\n" + " maxPrintString = " + maxPrintString + "\n" + "}"}"""}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?