Packages

class CharStreamImpl extends CharStream

Linear Supertypes
CharStream, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharStreamImpl
  2. CharStream
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CharStreamImpl(inputStream: InputStream)
  2. new CharStreamImpl(inputStream: InputStream, inputBufferSize: Int, minimumReadSize: Int)

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 BeginToken(): Char

    Returns the next character that marks the beginning of the next token.

    Returns the next character that marks the beginning of the next token. All characters must remain in the buffer between two successive calls to this method to implement backup correctly.

    Definition Classes
    CharStreamImplCharStream
  5. def Done(): Unit

    The lexer calls this function to indicate that it is done with the stream and hence implementations can free any resources held by this class.

    The lexer calls this function to indicate that it is done with the stream and hence implementations can free any resources held by this class. Again, the body of this function can be just empty and it will not affect the lexer's operation.

    Definition Classes
    CharStreamImplCharStream
  6. def GetImage(): String

    Returns a string made up of characters from the marked token beginning to the current buffer position.

    Returns a string made up of characters from the marked token beginning to the current buffer position. Implementations have the choice of returning anything that they want to. For example, for efficiency, one might decide to just return null, which is a valid implementation.

    Definition Classes
    CharStreamImplCharStream
  7. def GetSuffix(len: Int): Array[Char]

    Returns an array of characters that make up the suffix of length 'len' for the currently matched token.

    Returns an array of characters that make up the suffix of length 'len' for the currently matched token. This is used to build up the matched string for use in actions in the case of MORE. A simple and inefficient implementation of this is as follows :

    { String t = GetImage(); return t.substring(t.length() - len, t.length()).toCharArray(); }

    Definition Classes
    CharStreamImplCharStream
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def backup(amount: Int): Unit

    Backs up the input stream by amount steps.

    Backs up the input stream by amount steps. Lexer calls this method if it had already read some characters, but could not use them to match a (longer) token. So, they will be used again as the prefix of the next token and it is the implementation's responsibility to do this right.

    Definition Classes
    CharStreamImplCharStream
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def getBeginColumn(): Int

    Returns the column number of the first character for current token (being matched after the last call to BeginTOken).

    Returns the column number of the first character for current token (being matched after the last call to BeginTOken).

    Definition Classes
    CharStreamImplCharStream
  14. def getBeginLine(): Int

    Returns the line number of the first character for current token (being matched after the last call to BeginTOken).

    Returns the line number of the first character for current token (being matched after the last call to BeginTOken).

    Definition Classes
    CharStreamImplCharStream
  15. def getBeginPos: Int
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def getEndColumn(): Int

    Returns the column number of the last character for current token (being matched after the last call to BeginTOken).

    Returns the column number of the last character for current token (being matched after the last call to BeginTOken).

    Definition Classes
    CharStreamImplCharStream
  18. def getEndLine(): Int

    Returns the line number of the last character for current token (being matched after the last call to BeginTOken).

    Returns the line number of the last character for current token (being matched after the last call to BeginTOken).

    Definition Classes
    CharStreamImplCharStream
  19. def getTabSize(): Int
    Definition Classes
    CharStreamImplCharStream
  20. def getTrackLineColumn(): Boolean
    Definition Classes
    CharStreamImplCharStream
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  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
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. def readChar(): Char

    Returns the next character from the selected input.

    Returns the next character from the selected input. The method of selecting the input is the responsibility of the class implementing this interface. Can throw any java.io.IOException.

    Definition Classes
    CharStreamImplCharStream
  27. def setTabSize(i: Int): Unit
    Definition Classes
    CharStreamImplCharStream
  28. def setTrackLineColumn(trackLineColumn: Boolean): Unit
    Definition Classes
    CharStreamImplCharStream
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def getColumn(): Int

    Returns the column position of the character last read.

    Returns the column position of the character last read.

    Definition Classes
    CharStreamImplCharStream
    Deprecated
    See also

    #getEndColumn

  3. def getLine(): Int

    Returns the line number of the character last read.

    Returns the line number of the character last read.

    Definition Classes
    CharStreamImplCharStream
    Deprecated
    See also

    #getEndLine

Inherited from CharStream

Inherited from AnyRef

Inherited from Any

Ungrouped