sbt

EvaluateConfigurations

object EvaluateConfigurations

This file is responsible for compiling the .sbt files used to configure sbt builds.

Compilation is done in three phases:

  1. Parsing high-level constructs (definitions, settings, imports) 2. Compiling scala code into local .class files 3. Evaluating the expressions and obtaining in-memory objects of the results (Setting[_] instances, or val references).
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EvaluateConfigurations
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val SettingsDefinitionName: String

    The name of the class we cast DSL "setting" (vs.

    The name of the class we cast DSL "setting" (vs. definition) lines to.

  7. def addOffset(offset: Int, lines: Seq[(String, Int)]): Seq[(String, Int)]

  8. def addOffsetToRange(offset: Int, ranges: Seq[(String, LineRange)]): Seq[(String, LineRange)]

  9. def apply(eval: Eval, srcs: Seq[File], imports: Seq[String]): (ClassLoader) ⇒ LoadedSbtFile

    Using an evaluating instance of the scala compiler, a sequence of files and the default imports to use, this method will take a ClassLoader of sbt-classes and return a parsed, compiled + evaluated LoadedSbtFile.

    Using an evaluating instance of the scala compiler, a sequence of files and the default imports to use, this method will take a ClassLoader of sbt-classes and return a parsed, compiled + evaluated LoadedSbtFile. The result has raw sbt-types that can be accessed and used.

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def evaluateConfiguration(eval: Eval, file: File, lines: Seq[String], imports: Seq[String], offset: Int): (ClassLoader) ⇒ Seq[Def.Setting[_]]

    Evaluates a parsed sbt configuration file.

    Evaluates a parsed sbt configuration file.

    eval

    The evaluating scala compiler instance we use to handle evaluating scala configuration.

    file

    The file we've parsed

    lines

    The lines of the configurtion we'd like to evaluate.

    imports

    The default imports to use in this .sbt configuration

    returns

    Just the Setting[_] instances defined in the .sbt file.

  15. def evaluateConfiguration(eval: Eval, src: File, imports: Seq[String]): (ClassLoader) ⇒ Seq[Def.Setting[_]]

    Reads a given .

    Reads a given .sbt file and evaluates it into a sequence of setting values.

  16. def evaluateSetting(eval: Eval, name: String, imports: Seq[(String, Int)], expression: String, range: LineRange): (ClassLoader) ⇒ Seq[Def.Setting[_]]

    This actually compiles a scala expression which represents a Seq[Setting[_]], although the expression may be just a single setting.

    This actually compiles a scala expression which represents a Seq[Setting[_]], although the expression may be just a single setting.

    eval

    The mechanism to compile and evaluate Scala expressions.

    name

    The name for the thing we're compiling

    imports

    The scala imports to have in place when we compile the expression

    expression

    The scala expression we're compiling

    range

    The original position in source of the expression, for error messages.

    returns

    A method that given an sbt classloader, can return the actual Seq[Setting[_]] defined by the expression.

  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def flatten(mksettings: Seq[(ClassLoader) ⇒ Seq[Def.Setting[_]]]): (ClassLoader) ⇒ Seq[Def.Setting[_]]

  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def groupedLines(lines: Seq[(String, Int)], delimiter: (String) ⇒ Boolean, skipInitial: (String) ⇒ Boolean): Seq[(String, LineRange)]

  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def splitExpressions(lines: Seq[String]): (Seq[(String, Int)], Seq[(String, LineRange)])

    Splits a set of lines into (imports, expressions).

    Splits a set of lines into (imports, expressions). That is, anything on the right of the tuple is a scala expression (definition or setting).

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped