scala.tools.nsc.util

# JavaCharArrayReader

###
Related Doc: package util

#### class JavaCharArrayReader extends Iterator[Char] with Cloneable

Source
  JavaCharArrayReader.scala

Linear Supertypes
Cloneable, java.lang.Cloneable, collection.Iterator[Char], collection.TraversableOnce[Char], GenTraversableOnce[Char], AnyRef, Any
Type Hierarchy
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. JavaCharArrayReader
2. Cloneable
3. Cloneable
4. Iterator
5. TraversableOnce
6. GenTraversableOnce
7. AnyRef
8. Any

Implicitly

1. by MonadOps
2. by any2stringadd
3. by StringFormat
4. by Ensuring
5. by ArrowAssoc
6. by alternateImplicit

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Instance Constructors

1. #### new JavaCharArrayReader(buf: IndexedSeq[Char], decodeUni: Boolean, error: (String) ⇒ Unit)

2. #### new JavaCharArrayReader(buf: IndexedSeq[Char], start: Int, decodeUni: Boolean, error: (String) ⇒ Unit)

### Type Members

1. #### class GroupedIterator[B >: A] extends AbstractIterator[collection.Seq[B]] with collection.Iterator[collection.Seq[B]]

   Definition Classes
     Iterator

### Value Members

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

   Test two objects for inequality.

   Test two objects for inequality.

   returns

     `true` if !(this == that), false otherwise.

   Definition Classes
     AnyRef → Any

2. #### final def ##(): Int

   Equivalent to `x.hashCode` except for boxed numeric types and `null`.

   Equivalent to `x.hashCode` except for boxed numeric types and `null`. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For `null` returns a hashcode where `null.hashCode` throws a `NullPointerException`.

   returns

     a hash value consistent with ==

   Definition Classes
     AnyRef → Any

3. #### def +(other: String): String

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to any2stringadd[JavaCharArrayReader] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd

4. #### def ++[B >: Char](that: ⇒ GenTraversableOnce[B]): collection.Iterator[B]

   Definition Classes
     Iterator

5. #### def ->[B](y: B): (JavaCharArrayReader, B)

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to ArrowAssoc[JavaCharArrayReader] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()

6. #### def /:[B](z: B)(op: (B, Char) ⇒ B): B

   Definition Classes
     TraversableOnce → GenTraversableOnce

7. #### def :\[B](z: B)(op: (Char, B) ⇒ B): B

   Definition Classes
     TraversableOnce → GenTraversableOnce

8. #### final def ==(arg0: Any): Boolean

   The expression `x == that` is equivalent to `if (x eq null) that eq null else x.equals(that)`.

   The expression `x == that` is equivalent to `if (x eq null) that eq null else x.equals(that)`.

   returns

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

   Definition Classes
     AnyRef → Any

9. #### def addString(b: StringBuilder): StringBuilder

   Definition Classes
     TraversableOnce

10. #### def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
      TraversableOnce

11. #### def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
      TraversableOnce

12. #### def aggregate[B](z: ⇒ B)(seqop: (B, Char) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

13. #### final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type `T0`.

    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 expression `1.asInstanceOf[String]` will throw a `ClassCastException` at runtime, while the expression `List(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 type.

    returns

      the receiver object.

    Definition Classes
      Any
    Exceptions thrown

      `ClassCastException` if the receiver object is not an instance of the erasure of type `T0`.

14. #### var bp: Int

15. #### def buffered: collection.BufferedIterator[Char]

    Definition Classes
      Iterator

16. #### var ch: Char

    the line and column position of the current character

17. #### def clone(): AnyRef

    Create a copy of the receiver object.

    Create 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[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
    Note

      not specified by SLS as a member of AnyRef

18. #### def collect[B](pf: PartialFunction[Char, B]): collection.Iterator[B]

    Definition Classes
      Iterator
    Annotations
      @migration
    Migration

      (Changed in version 2.8.0) `collect` has changed. The previous behavior can be reproduced with `toSeq`.

19. #### def collectFirst[B](pf: PartialFunction[Char, B]): Option[B]

    Definition Classes
      TraversableOnce

20. #### def contains(elem: Any): Boolean

    Definition Classes
      Iterator

21. #### def copy: JavaCharArrayReader

22. #### def copyToArray[B >: Char](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

23. #### def copyToArray[B >: Char](xs: Array[B]): Unit

    Definition Classes
      TraversableOnce → GenTraversableOnce

24. #### def copyToArray[B >: Char](xs: Array[B], start: Int): Unit

    Definition Classes
      TraversableOnce → GenTraversableOnce

25. #### def copyToBuffer[B >: Char](dest: Buffer[B]): Unit

    Definition Classes
      TraversableOnce

26. #### def corresponds[B](that: GenTraversableOnce[B])(p: (Char, B) ⇒ Boolean): Boolean

    Definition Classes
      Iterator

27. #### def count(p: (Char) ⇒ Boolean): Int

    Definition Classes
      TraversableOnce → GenTraversableOnce

28. #### def cpos: Int

29. #### def drop(n: Int): collection.Iterator[Char]

    Definition Classes
      Iterator

30. #### def dropWhile(p: (Char) ⇒ Boolean): collection.Iterator[Char]

    Definition Classes
      Iterator

31. #### def duplicate: (collection.Iterator[Char], collection.Iterator[Char])

    Definition Classes
      Iterator

32. #### def ensuring(cond: (JavaCharArrayReader) ⇒ Boolean, msg: ⇒ Any): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring

33. #### def ensuring(cond: (JavaCharArrayReader) ⇒ Boolean): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring

34. #### def ensuring(cond: Boolean, msg: ⇒ Any): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring

35. #### def ensuring(cond: Boolean): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring

36. #### final def eq(arg0: AnyRef): Boolean

    Tests whether the argument (`that`) is a reference to the receiver object (`this`).

    Tests whether the argument (`that`) is a reference to the receiver object (`this`).

    The `eq` method implements an equivalence relation on non-null instances of `AnyRef`, and has three additional 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`).

    returns

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

    Definition Classes
      AnyRef

37. #### def equals(arg0: Any): Boolean

    The equality method for reference types.

    The equality method for reference types. Default implementation delegates to `eq`.

    See also `equals` in scala.Any.

    returns

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

    Definition Classes
      AnyRef → Any

38. #### def exists(p: (Char) ⇒ Boolean): Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

39. #### def filter(p: (Char) ⇒ Boolean): collection.Iterator[Char]

    Definition Classes
      Iterator

40. #### def filterNot(p: (Char) ⇒ Boolean): collection.Iterator[Char]

    Definition Classes
      Iterator

41. #### def finalize(): Unit

    Called by the garbage collector on the receiver object when there are no more references to the object.

    Called by the garbage collector on the receiver object when there are no more references to the object.

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

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
    Note

      not specified by SLS as a member of AnyRef

42. #### def find(p: (Char) ⇒ Boolean): Option[Char]

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

43. #### def flatMap[B](f: (Char) ⇒ GenTraversableOnce[B]): collection.Iterator[B]

    Definition Classes
      Iterator

44. #### def fold[A1 >: Char](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
      TraversableOnce → GenTraversableOnce

45. #### def foldLeft[B](z: B)(op: (B, Char) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

46. #### def foldRight[B](z: B)(op: (Char, B) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

47. #### def forall(p: (Char) ⇒ Boolean): Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

48. #### def foreach[U](f: (Char) ⇒ U): Unit

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

49. #### def formatted(fmtstr: String): String

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to StringFormat[JavaCharArrayReader] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()

50. #### final def getClass(): Class[_]

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

    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.

    Definition Classes
      AnyRef → Any
    Note

      not specified by SLS as a member of AnyRef

51. #### def grouped[B >: Char](size: Int): GroupedIterator[B]

    Definition Classes
      Iterator

52. #### def hasDefiniteSize: Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

53. #### def hasNext: Boolean

    Definition Classes
      JavaCharArrayReader → Iterator

54. #### def hashCode(): Int

    The hashCode method for reference types.

    The hashCode method for reference types. See hashCode in scala.Any.

    returns

      the hash code value for this object.

    Definition Classes
      AnyRef → Any

55. #### def indexOf[B >: Char](elem: B): Int

    Definition Classes
      Iterator

56. #### def indexWhere(p: (Char) ⇒ Boolean): Int

    Definition Classes
      Iterator

57. #### def isEmpty: Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

58. #### final def isInstanceOf[T0]: Boolean

    Test whether the dynamic type of the receiver object is `T0`.

    Test whether the dynamic type of the receiver object is `T0`.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression `1.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 specified type.

    returns

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

    Definition Classes
      Any

59. #### def isTraversableAgain: Boolean

    Definition Classes
      Iterator → GenTraversableOnce

60. #### var isUnicode: Boolean

61. #### def length: Int

    Definition Classes
      Iterator

62. #### def map[B](f: (Char) ⇒ B): collection.Iterator[B]

    Definition Classes
      Iterator

63. #### def max[B >: Char](implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

64. #### def maxBy[B](f: (Char) ⇒ B)(implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

65. #### def min[B >: Char](implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

66. #### def minBy[B](f: (Char) ⇒ B)(implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

67. #### def mkString: String

    Definition Classes
      TraversableOnce → GenTraversableOnce

68. #### def mkString(sep: String): String

    Definition Classes
      TraversableOnce → GenTraversableOnce

69. #### def mkString(start: String, sep: String, end: String): String

    Definition Classes
      TraversableOnce → GenTraversableOnce

70. #### final def ne(arg0: AnyRef): Boolean

    Equivalent to `!(this eq that)`.

    Equivalent to `!(this eq that)`.

    returns

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

    Definition Classes
      AnyRef

71. #### def next(): Char

    Definition Classes
      JavaCharArrayReader → Iterator

72. #### def nonEmpty: Boolean

    Definition Classes
      TraversableOnce → GenTraversableOnce

73. #### final 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.

    Definition Classes
      AnyRef
    Note

      not specified by SLS as a member of AnyRef

74. #### final 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.

    Definition Classes
      AnyRef
    Note

      not specified by SLS as a member of AnyRef

75. #### def padTo[A1 >: Char](len: Int, elem: A1): collection.Iterator[A1]

    Definition Classes
      Iterator

76. #### def partition(p: (Char) ⇒ Boolean): (collection.Iterator[Char], collection.Iterator[Char])

    Definition Classes
      Iterator

77. #### def patch[B >: Char](from: Int, patchElems: collection.Iterator[B], replaced: Int): collection.Iterator[B]

    Definition Classes
      Iterator

78. #### def product[B >: Char](implicit num: Numeric[B]): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

79. #### def reduce[A1 >: Char](op: (A1, A1) ⇒ A1): A1

    Definition Classes
      TraversableOnce → GenTraversableOnce

80. #### def reduceLeft[B >: Char](op: (B, Char) ⇒ B): B

    Definition Classes
      TraversableOnce

81. #### def reduceLeftOption[B >: Char](op: (B, Char) ⇒ B): Option[B]

    Definition Classes
      TraversableOnce → GenTraversableOnce

82. #### def reduceOption[A1 >: Char](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
      TraversableOnce → GenTraversableOnce

83. #### def reduceRight[B >: Char](op: (Char, B) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

84. #### def reduceRightOption[B >: Char](op: (Char, B) ⇒ B): Option[B]

    Definition Classes
      TraversableOnce → GenTraversableOnce

85. #### def reversed: List[Char]

    Attributes
      protected[this]
    Definition Classes
      TraversableOnce

86. #### def sameElements(that: collection.Iterator[_]): Boolean

    Definition Classes
      Iterator

87. #### def scanLeft[B](z: B)(op: (B, Char) ⇒ B): collection.Iterator[B]

    Definition Classes
      Iterator

88. #### def scanRight[B](z: B)(op: (Char, B) ⇒ B): collection.Iterator[B]

    Definition Classes
      Iterator

89. #### def seq: collection.Iterator[Char]

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

90. #### def size: Int

    Definition Classes
      TraversableOnce → GenTraversableOnce

91. #### def slice(from: Int, until: Int): collection.Iterator[Char]

    Definition Classes
      Iterator

92. #### def sliding[B >: Char](size: Int, step: Int): GroupedIterator[B]

    Definition Classes
      Iterator

93. #### def span(p: (Char) ⇒ Boolean): (collection.Iterator[Char], collection.Iterator[Char])

    Definition Classes
      Iterator

94. #### def sum[B >: Char](implicit num: Numeric[B]): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

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

    Definition Classes
      AnyRef

96. #### def take(n: Int): collection.Iterator[Char]

    Definition Classes
      Iterator

97. #### def takeWhile(p: (Char) ⇒ Boolean): collection.Iterator[Char]

    Definition Classes
      Iterator

98. #### def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Char, Col[Char]]): Col[Char]

    Definition Classes
      TraversableOnce → GenTraversableOnce

99. #### def toArray[B >: Char](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
      TraversableOnce → GenTraversableOnce

100. #### def toBuffer[B >: Char]: Buffer[B]

     Definition Classes
       TraversableOnce → GenTraversableOnce

101. #### def toIndexedSeq: collection.immutable.IndexedSeq[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

102. #### def toIterable: collection.Iterable[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

103. #### def toIterator: collection.Iterator[Char]

     Definition Classes
       Iterator → GenTraversableOnce

104. #### def toList: List[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

105. #### def toMap[T, U](implicit ev: <:<[Char, (T, U)]): Map[T, U]

     Definition Classes
       TraversableOnce → GenTraversableOnce

106. #### def toSeq: collection.Seq[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

107. #### def toSet[B >: Char]: collection.immutable.Set[B]

     Definition Classes
       TraversableOnce → GenTraversableOnce

108. #### def toStream: collection.immutable.Stream[Char]

     Definition Classes
       Iterator → GenTraversableOnce

109. #### def toString(): String

     Creates a String representation of this object.

     Creates a String representation of this object. The default representation is platform dependent. On the java platform it is the concatenation of the class name, "@", and the object's hashcode in hexadecimal.

     returns

       a String representation of the object.

     Definition Classes
       Iterator → AnyRef → Any

110. #### def toTraversable: collection.Traversable[Char]

     Definition Classes
       Iterator → TraversableOnce → GenTraversableOnce

111. #### def toVector: Vector[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

112. #### final def wait(): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

113. #### final def wait(arg0: Long, arg1: Int): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

114. #### final def wait(arg0: Long): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

115. #### def withFilter(p: (Char) ⇒ Boolean): collection.Iterator[Char]

     Definition Classes
       Iterator

116. #### def zip[B](that: collection.Iterator[B]): collection.Iterator[(Char, B)]

     Definition Classes
       Iterator

117. #### def zipAll[B, A1 >: Char, B1 >: B](that: collection.Iterator[B], thisElem: A1, thatElem: B1): collection.Iterator[(A1, B1)]

     Definition Classes
       Iterator

118. #### def zipWithIndex: collection.Iterator[(Char, Int)]

     Definition Classes
       Iterator

119. #### def →[B](y: B): (JavaCharArrayReader, B)

     Implicit information
       This member is added by an implicit conversion from JavaCharArrayReader to ArrowAssoc[JavaCharArrayReader] performed by method ArrowAssoc in scala.Predef.
     Definition Classes
       ArrowAssoc

### Shadowed Implicit Value Members

1. #### def filter(p: (Char) ⇒ Boolean): collection.TraversableOnce[Char]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).filter(p)

   Definition Classes
     MonadOps

2. #### def flatMap[B](f: (Char) ⇒ GenTraversableOnce[B]): collection.TraversableOnce[B]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).flatMap(f)

   Definition Classes
     MonadOps

3. #### def map[B](f: (Char) ⇒ B): collection.TraversableOnce[B]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).map(f)

   Definition Classes
     MonadOps

4. #### def withFilter(p: (Char) ⇒ Boolean): collection.Iterator[Char]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).withFilter(p)

   Definition Classes
     MonadOps

### Inherited from Cloneable

### Inherited from java.lang.Cloneable

### Inherited from collection.Iterator[Char]

### Inherited from collection.TraversableOnce[Char]

### Inherited from GenTraversableOnce[Char]

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion MonadOps from JavaCharArrayReader to MonadOps[Char]

### Inherited by implicit conversion any2stringadd from JavaCharArrayReader to any2stringadd[JavaCharArrayReader]

### Inherited by implicit conversion StringFormat from JavaCharArrayReader to StringFormat[JavaCharArrayReader]

### Inherited by implicit conversion Ensuring from JavaCharArrayReader to Ensuring[JavaCharArrayReader]

### Inherited by implicit conversion ArrowAssoc from JavaCharArrayReader to ArrowAssoc[JavaCharArrayReader]

### Inherited by implicit conversion alternateImplicit from JavaCharArrayReader to ForceImplicitAmbiguity

### Ungrouped