class Reader extends AnyRef
- Alphabetic
- By Inheritance
- Reader
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
close: Unit
closes the underlying Java reader
-
def
endOfDeclaration: Boolean
true if the last read operation hit the end of the current declaration
-
def
endOfDocument: Boolean
true if the last read operation hit the end of the current document
-
def
endOfInput: Boolean
true if the last read operation hit the end of the current input stream
-
def
endOfModule: Boolean
true if the last read operation hit the end of the current module
-
def
endOfObject: Boolean
true if the last read operation hit the end of the current object
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getLastReadSourcePosition: SourcePosition
- returns
the position of the most recently read non-whitespace character
-
def
getNextSourcePosition: SourcePosition
- returns
the position of the next character to be read
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val jr: BufferedReader
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
readAll: (String, SourceRegion)
reads until EOF
-
def
readDeclaration: (String, SourceRegion)
reads until end of current declaration, terminated by the ASCII character RS, GS, or FS (decimal 28-30)
-
def
readDocument: (String, SourceRegion)
reads until end of current document, terminated by the ASCII character FS (decimal 28)
-
def
readModule: (String, SourceRegion)
reads until end of current module, terminated by the ASCII characters GS or FS (decimal 28-29)
-
def
readObject: (String, SourceRegion)
reads until end of current object, terminated by the ASCII character RS, GS, FS, or US (decimal 28-31)
-
def
readToSpace: (String, SourceRegion)
reads until end of current Token, terminated by whitespace
-
def
readToken: (String, SourceRegion)
reads until end of current Token, terminated by whitespace or by switch from letter-like to symbol-like characters
-
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.
-
def
startsWith(s: String): Boolean
checks if the remainder starts with a certain String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()