dotty.tools.dotc.util

SourceFile

Related Doc: package util

case class SourceFile(file: AbstractFile, content: Array[Char]) extends interfaces.SourceFile with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, interfaces.SourceFile, AbstractFile, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SourceFile
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SourceFile
  7. AbstractFile
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SourceFile(file: AbstractFile, cs: Seq[Char])

  2. new SourceFile(sourceName: String, cs: Seq[Char])

  3. new SourceFile(_file: AbstractFile, codec: Codec)

  4. new SourceFile(file: AbstractFile, content: Array[Char])

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def apply(idx: Int): Char

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def atPos(pos: Position): SourcePosition

  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def column(offset: Int): Int

    The column corresponding to offset, starting at 0

  9. val content: Array[Char]

    Definition Classes
    SourceFile → SourceFile
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(that: Any): Boolean

    Definition Classes
    SourceFile → Equals → AnyRef → Any
  12. def exists: Boolean

    true for all source files except NoSource

  13. val file: AbstractFile

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

    Definition Classes
    Any
  18. def isSelfContained: Boolean

  19. def jfile(): Optional[File]

    Definition Classes
    SourceFile → AbstractFile
  20. val length: Int

  21. def lineContent(offset: Int): String

    The content of the line containing position offset

  22. def lineToOffset(index: Int): Int

    Map line to offset of first character in line

  23. def name(): String

    Definition Classes
    SourceFile → AbstractFile
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def nextLine(offset: Int): Int

    The start index of the line following the one containing position offset

  26. final def notify(): Unit

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

    Definition Classes
    AnyRef
  28. def offsetToLine(offset: Int): Int

    Convert offset to line in this source file Lines are numbered from 0

  29. def path(): String

    Definition Classes
    SourceFile → AbstractFile
  30. def positionInUltimateSource(position: SourcePosition): SourcePosition

    Map a position to a position in the underlying source file.

    Map a position to a position in the underlying source file. For regular source files, simply return the argument.

  31. def start: Int

    The start of this file in the underlying source file

  32. def startOfLine(offset: Int): Int

    The index of the first character of the line containing position offset

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

    Definition Classes
    AnyRef
  34. def tabInc: Int

    Tab increment; can be overridden

  35. def toString(): String

    Definition Classes
    SourceFile → AnyRef → Any
  36. def underlying: SourceFile

    The underlying source file

  37. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from interfaces.SourceFile

Inherited from AbstractFile

Inherited from AnyRef

Inherited from Any

Ungrouped