scalariform.lexer

ScalaLexer

class ScalaLexer extends ScalaOnlyLexer with XmlLexer with ModeStack with TokenTests with Iterator[Token]

go to: companion
Inherited
  1. Hide All
  2. Show all
  1. Iterator
  2. TraversableOnce
  3. TokenTests
  4. ModeStack
  5. XmlLexer
  6. ScalaOnlyLexer
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new ScalaLexer(reader: IUnicodeEscapeReader, forgiveErrors: Boolean = false, scalaVersion: ScalaVersion = scalariform.ScalaVersions.DEFAULT)

Value Members

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

    attributes: final
    definition classes: AnyRef
  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

    o != arg0 is the same as !(o == (arg0)).

    arg0

    the object to compare against this object for dis-equality.

    returns

    false if the receiver object is equivalent to the argument; true otherwise.

    attributes: final
    definition classes: Any
  3. def ##(): Int

    attributes: final
    definition classes: AnyRef → Any
  4. def $asInstanceOf[T0](): T0

    attributes: final
    definition classes: AnyRef
  5. def $isInstanceOf[T0](): Boolean

    attributes: final
    definition classes: AnyRef
  6. def ++[B >: Token](that: ⇒ Iterator[B]): Iterator[B]

    definition classes: Iterator
  7. def /:[B](z: B)(op: (B, Token) ⇒ B): B

    definition classes: TraversableOnce
  8. def :\[B](z: B)(op: (Token, B) ⇒ B): B

    definition classes: TraversableOnce
  9. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: AnyRef
  10. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

    o == arg0 is the same as o.equals(arg0).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    attributes: final
    definition classes: Any
  11. def addString(b: StringBuilder): StringBuilder

    definition classes: TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder

    definition classes: TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    definition classes: TraversableOnce
  14. def append[B >: Token](that: Iterator[B]): Iterator[B]

    definition classes: Iterator
      deprecated:
    1. use ++

  15. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

    This method is used to cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expressionList(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    the receiver object.

    attributes: final
    definition classes: Any
  16. def buffered: BufferedIterator[Token]

    definition classes: Iterator
  17. var builtToken: Token

    attributes: protected
  18. def ch(lookahead: Int): Char

    Get the character at the given lookahead from the current position.

    Get the character at the given lookahead from the current position.

    attributes: protected
  19. def ch: Char

    Get the current character.

    Get the current character.

    attributes: protected
  20. def checkPubID(s: String): Boolean

    definition classes: TokenTests
  21. def checkSysID(s: String): Boolean

    definition classes: TokenTests
  22. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

    returns

    a copy of the receiver object.

    attributes: protected
    definition classes: AnyRef
  23. def collect[B](pf: PartialFunction[Token, B]): Iterator[B]

    definition classes: Iterator
  24. def contains(elem: Any): Boolean

    definition classes: Iterator
  25. def copyToArray[B >: Token](xs: Array[B], start: Int, len: Int): Unit

    definition classes: Iterator → TraversableOnce
  26. def copyToArray[B >: Token](xs: Array[B]): Unit

    definition classes: TraversableOnce
  27. def copyToArray[B >: Token](xs: Array[B], start: Int): Unit

    definition classes: TraversableOnce
  28. def copyToBuffer[B >: Token](dest: Buffer[B]): Unit

    definition classes: TraversableOnce
  29. def count(p: (Token) ⇒ Boolean): Int

    definition classes: TraversableOnce
  30. def counted: CountedIterator[Token]

    definition classes: Iterator
      deprecated:
    1. use zipWithIndex in Iterator

  31. def drop(n: Int): Iterator[Token]

    definition classes: Iterator
  32. def dropWhile(p: (Token) ⇒ Boolean): Iterator[Token]

    definition classes: Iterator
  33. def duplicate: (Iterator[Token], Iterator[Token])

    definition classes: Iterator
  34. def eof: Boolean

    attributes: protected
  35. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

    The eq method implements an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation] on non-null instances of AnyRef: * It is reflexive: for any non-null instance x of type AnyRef, x.eq(x) returns true. * It is symmetric: for any non-null instances x and y of type AnyRef, x.eq(y) returns true if and only if y.eq(x) returns true. * It is transitive: for any non-null instances x, y, and z of type AnyRef if x.eq(y) returns true and y.eq(z) returns true, then x.eq(z) returns true.

    Additionally, the eq method has three other properties. * It is consistent: for any non-null instances x and y of type AnyRef, multiple invocations of x.eq(y) consistently returns true or consistently returns false. * For any non-null instance x of type AnyRef, x.eq(null) and null.eq(x) returns false. * null.eq(null) returns true.

    When overriding the equals or hashCode methods, it is important to ensure that their behavior is consistent with reference equality. Therefore, if two objects are references to each other (o1 eq o2), they should be equal to each other (o1 == o2) and they should hash to the same value (o1.hashCode == o2.hashCode).

    arg0

    the object to compare against this object for reference equality.

    returns

    true if the argument is a reference to the receiver object; false otherwise.

    attributes: final
    definition classes: AnyRef
  36. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an [http://en.wikipedia.org/wiki/Equivalence_relation equivalence relation]: * It is reflexive: for any instance x of type Any, x.equals(x) should return true. * It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true. * It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same scala.Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef → Any
  37. def exists(p: (Token) ⇒ Boolean): Boolean

    definition classes: Iterator → TraversableOnce
  38. def fetchScalaToken(): Unit

    attributes: protected
    definition classes: ScalaOnlyLexer
  39. def fetchXmlToken(): Unit

    attributes: protected
    definition classes: XmlLexer
  40. def filter(p: (Token) ⇒ Boolean): Iterator[Token]

    definition classes: Iterator
  41. def filterNot(p: (Token) ⇒ Boolean): Iterator[Token]

    definition classes: Iterator
  42. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

    The details of when and if the finalize method are invoked, as well as the interaction between finalizeand non-local returns and exceptions, are all platform dependent.

    attributes: protected
    definition classes: AnyRef
  43. def find(p: (Token) ⇒ Boolean): Option[Token]

    definition classes: Iterator → TraversableOnce
  44. def findIndexOf(p: (Token) ⇒ Boolean): Int

    definition classes: Iterator
      deprecated:
    1. use indexWhere instead

  45. def flatMap[B](f: (Token) ⇒ Iterator[B]): Iterator[B]

    definition classes: Iterator
  46. def foldLeft[B](z: B)(op: (B, Token) ⇒ B): B

    definition classes: TraversableOnce
  47. def foldRight[B](z: B)(op: (Token, B) ⇒ B): B

    definition classes: TraversableOnce
  48. def forall(p: (Token) ⇒ Boolean): Boolean

    definition classes: Iterator → TraversableOnce
  49. def foreach[U](f: (Token) ⇒ U): Unit

    definition classes: Iterator → TraversableOnce
  50. val forgiveErrors: Boolean

    attributes: protected
  51. def getClass(): java.lang.Class[_]

    Returns a representation that corresponds to the dynamic class of the receiver object.

    Returns a representation that corresponds to the dynamic class of the receiver object.

    The nature of the representation is platform dependent.

    returns

    a representation that corresponds to the dynamic class of the receiver object.

    attributes: final
    definition classes: AnyRef
  52. def getStringPart(multiLine: Boolean): Unit

    attributes: protected final
    definition classes: ScalaOnlyLexer
  53. def getTokenText: String

    attributes: protected
  54. def grouped[B >: Token](size: Int): GroupedIterator[B]

    definition classes: Iterator
  55. def hasDefiniteSize: Boolean

    definition classes: Iterator → TraversableOnce
  56. def hasNext: Boolean

    definition classes: ScalaLexer → Iterator
  57. def hashCode(): Int

    Returns a hash code value for the object.

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    returns

    the hash code value for the object.

    definition classes: AnyRef → Any
  58. def indexOf[B >: Token](elem: B): Int

    definition classes: Iterator
  59. def indexWhere(p: (Token) ⇒ Boolean): Int

    definition classes: Iterator
  60. def isAlpha(c: Char): Boolean

    definition classes: TokenTests
  61. def isAlphaDigit(c: Char): Boolean

    definition classes: TokenTests
  62. def isEmpty: Boolean

    definition classes: Iterator → TraversableOnce
  63. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

    This method is used to test whether the dynamic type of the receiver object is T0.

    Note that the test result of the test is modulo Scala's erasure semantics. Therefore the expression1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested typed.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    attributes: final
    definition classes: Any
  64. def isName(s: String): Boolean

    definition classes: TokenTests
  65. def isNameChar(ch: Char): Boolean

    definition classes: TokenTests
  66. def isNameStart(ch: Char): Boolean

    definition classes: TokenTests
  67. def isPubIDChar(ch: Char): Boolean

    definition classes: TokenTests
  68. def isRootMode: Boolean

    attributes: protected
    definition classes: ModeStack
  69. def isScalaMode: Boolean

    attributes: protected
    definition classes: ModeStack
  70. def isSpace(cs: Seq[Char]): Boolean

    attributes: final
    definition classes: TokenTests
  71. def isSpace(ch: Char): Boolean

    attributes: final
    definition classes: TokenTests
  72. def isStringInterpolationMode: Boolean

    attributes: protected
    definition classes: ModeStack
  73. def isTraversableAgain: Boolean

    definition classes: Iterator → TraversableOnce
  74. def isUnicodeEscape: Boolean

    Is the current character the result of a unicode escape?

    Is the current character the result of a unicode escape?

    attributes: protected
  75. def isValidIANAEncoding(ianaEncoding: Seq[Char]): Boolean

    definition classes: TokenTests
  76. def isXmlMode: Boolean

    attributes: protected
    definition classes: ModeStack
  77. var lastCh: Char

    The previous character

    The previous character

    attributes: protected
  78. def length: Int

    definition classes: Iterator
  79. def lookaheadIs(s: String): Boolean

    attributes: protected
  80. def map[B](f: (Token) ⇒ B): Iterator[B]

    definition classes: Iterator
  81. def max[B >: Token](implicit cmp: Ordering[B]): Token

    definition classes: TraversableOnce
  82. def min[B >: Token](implicit cmp: Ordering[B]): Token

    definition classes: TraversableOnce
  83. def mkString: String

    definition classes: TraversableOnce
  84. def mkString(sep: String): String

    definition classes: TraversableOnce
  85. def mkString(start: String, sep: String, end: String): String

    definition classes: TraversableOnce
  86. def munch(s: String): Unit

    attributes: protected
  87. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

    o.ne(arg0) is the same as !(o.eq(arg0)).

    arg0

    the object to compare against this object for reference dis-equality.

    returns

    false if the argument is not a reference to the receiver object; true otherwise.

    attributes: final
    definition classes: AnyRef
  88. def next(): Token

    definition classes: ScalaLexer → Iterator
  89. def nextChar(): Unit

    Accept the current character and advance to the next.

    Accept the current character and advance to the next.

    attributes: protected
  90. def nextToken(): Token

      deprecated:
    1. Use next() instead

  91. def nonEmpty: Boolean

    definition classes: TraversableOnce
  92. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

    Wakes up a single thread that is waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  93. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

    Wakes up all threads that are waiting on the receiver object's monitor.

    attributes: final
    definition classes: AnyRef
  94. def padTo[A1 >: Token](len: Int, elem: A1): Iterator[A1]

    definition classes: Iterator
  95. def partition(p: (Token) ⇒ Boolean): (Iterator[Token], Iterator[Token])

    definition classes: Iterator
  96. def patch[B >: Token](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

    definition classes: Iterator
  97. def popMode(): Unit

    attributes: protected
    definition classes: ModeStack
  98. def product[B >: Token](implicit num: Numeric[B]): B

    definition classes: TraversableOnce
  99. def readInto[B >: Token](xs: Array[B]): Unit

    definition classes: Iterator
      deprecated:
    1. use copyToArray instead

  100. def readInto[B >: Token](xs: Array[B], start: Int): Unit

    definition classes: Iterator
      deprecated:
    1. use copyToArray instead

  101. def readInto[B >: Token](xs: Array[B], start: Int, sz: Int): Unit

    definition classes: Iterator
      deprecated:
    1. use copyToArray instead

  102. val reader: IUnicodeEscapeReader

    attributes: protected
  103. def reduceLeft[B >: Token](op: (B, Token) ⇒ B): B

    definition classes: TraversableOnce
  104. def reduceLeftOption[B >: Token](op: (B, Token) ⇒ B): Option[B]

    definition classes: TraversableOnce
  105. def reduceRight[B >: Token](op: (Token, B) ⇒ B): B

    definition classes: TraversableOnce
  106. def reduceRightOption[B >: Token](op: (Token, B) ⇒ B): Option[B]

    definition classes: TraversableOnce
  107. def reversed: List[Token]

    attributes: protected[this]
    definition classes: TraversableOnce
  108. def sameElements(that: Iterator[_]): Boolean

    definition classes: Iterator
  109. def scalaMode: ScalaMode

    attributes: protected
    definition classes: ModeStack
  110. val scalaVersion: ScalaVersion

    attributes: protected
  111. def size: Int

    definition classes: TraversableOnce
  112. def slice(from: Int, until: Int): Iterator[Token]

    definition classes: Iterator
  113. def sliding[B >: Token](size: Int, step: Int): GroupedIterator[B]

    definition classes: Iterator
  114. def stringInterpolationMode: StringInterpolationMode

    attributes: protected
    definition classes: ModeStack
  115. def sum[B >: Token](implicit num: Numeric[B]): B

    definition classes: TraversableOnce
  116. def switchToScalaMode(): Unit

    attributes: protected
    definition classes: ModeStack
  117. def switchToScalaModeAndFetchToken(): Unit

    attributes: protected
    definition classes: ModeStack
  118. def switchToStringInterpolationMode(multiLine: Boolean): Unit

    attributes: protected
    definition classes: ModeStack
  119. def switchToXmlModeAndFetchToken(): Unit

    attributes: protected
    definition classes: ModeStack
  120. def synchronized[T0](arg0: T0): T0

    attributes: final
    definition classes: AnyRef
  121. def take(n: Int): Iterator[Token]

    definition classes: Iterator
  122. def takeWhile(p: (Token) ⇒ Boolean): Iterator[Token]

    definition classes: Iterator
  123. def toArray[B >: Token](implicit arg0: ClassManifest[B]): Array[B]

    definition classes: TraversableOnce
  124. def toBuffer[B >: Token]: Buffer[B]

    definition classes: TraversableOnce
  125. def toIndexedSeq[B >: Token]: IndexedSeq[B]

    definition classes: TraversableOnce
  126. def toIterable: Iterable[Token]

    definition classes: TraversableOnce
  127. def toIterator: Iterator[Token]

    definition classes: Iterator → TraversableOnce
  128. def toList: List[Token]

    definition classes: TraversableOnce
  129. def toMap[T, U](implicit ev: <:<[Token, (T, U)]): Map[T, U]

    definition classes: TraversableOnce
  130. def toSeq: Seq[Token]

    definition classes: TraversableOnce
  131. def toSet[B >: Token]: Set[B]

    definition classes: TraversableOnce
  132. def toStream: Stream[Token]

    definition classes: Iterator → TraversableOnce
  133. def toString(): String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    definition classes: Iterator → AnyRef → Any
  134. def toTraversable: Traversable[Token]

    definition classes: Iterator → TraversableOnce
  135. def token(tokenType: TokenType): Unit

    Mark the end of a token of the given type.

    Mark the end of a token of the given type.

    attributes: protected
  136. def wait(): Unit

    attributes: final
    definition classes: AnyRef
  137. def wait(arg0: Long, arg1: Int): Unit

    attributes: final
    definition classes: AnyRef
  138. def wait(arg0: Long): Unit

    attributes: final
    definition classes: AnyRef
  139. def withFilter(p: (Token) ⇒ Boolean): Iterator[Token]

    definition classes: Iterator
  140. def xmlMode: XmlMode

    attributes: protected
    definition classes: ModeStack
  141. def zip[B](that: Iterator[B]): Iterator[(Token, B)]

    definition classes: Iterator
  142. def zipAll[B, A1 >: Token, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

    definition classes: Iterator
  143. def zipWithIndex: Iterator[(Token, Int)] {...}

    definition classes: Iterator