Packages

class Reader extends AnyRef

a Java-style reader that provides MMT-specific read methods

Source
Reader.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Reader
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Reader(jr: BufferedReader)

    jr

    the underlying Java reader MMT documents are delimited by the control characters FS, GS, RS, US (ASCII decimal 28-31) for end of document, module, declaration, object, respectively PU1 and PU2 (ASCII decimal 145, 146) are used to escape in/out of other formats content between balanced PU1 and PU2 is skipped

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def close: Unit

    closes the underlying Java reader

  7. def endOfDeclaration: Boolean

    true if the last read operation hit the end of the current declaration

  8. def endOfDocument: Boolean

    true if the last read operation hit the end of the current document

  9. def endOfInput: Boolean

    true if the last read operation hit the end of the current input stream

  10. def endOfModule: Boolean

    true if the last read operation hit the end of the current module

  11. def endOfObject: Boolean

    true if the last read operation hit the end of the current object

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getLastReadSourcePosition: SourcePosition

    returns

    the position of the most recently read non-whitespace character

  17. def getNextSourcePosition: SourcePosition

    returns

    the position of the next character to be read

  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val jr: BufferedReader
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def readAll: (String, SourceRegion)

    reads until EOF

  25. def readDeclaration: (String, SourceRegion)

    reads until end of current declaration, terminated by the ASCII character RS, GS, or FS (decimal 28-30)

  26. def readDocument: (String, SourceRegion)

    reads until end of current document, terminated by the ASCII character FS (decimal 28)

  27. def readModule: (String, SourceRegion)

    reads until end of current module, terminated by the ASCII characters GS or FS (decimal 28-29)

  28. def readObject: (String, SourceRegion)

    reads until end of current object, terminated by the ASCII character RS, GS, FS, or US (decimal 28-31)

  29. def readToSpace: (String, SourceRegion)

    reads until end of current Token, terminated by whitespace

  30. def readToken: (String, SourceRegion)

    reads until end of current Token, terminated by whitespace or by switch from letter-like to symbol-like characters

  31. def setNextSourcePosition(s: SourcePosition): Unit

    sets the current position

    sets the current position

    s

    a source position to overwrite the position of the next character to be read This only affects the SourceRegion returned by read operations, not the actual position in the stream.

  32. def startsWith(s: String): Boolean

    checks if the remainder starts with a certain String

  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Deprecated Value Members

  1. def forceLastDelimiter(i: Int): Unit
    Annotations
    @MMT_TODO( message = "needs review" )
    Deprecated

    needs review

Inherited from AnyRef

Inherited from Any

Ungrouped