Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package opalj

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode.

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode. OPAL is designed with performance, scalability and adaptability in mind.

    Its main components are:

    • a library (Common) which provides generally useful data-structures and algorithms for static analyses.
    • a framework for implementing lattice based static analyses (Static Analysis Infrastructure)
    • a framework for parsing Java bytecode (Bytecode Infrastructure) that can be used to create arbitrary representations.
    • a library to create a one-to-one in-memory representation of Java bytecode (Bytecode Disassembler).
    • a library to create a representation of Java bytecode that facilitates writing simple static analyses (Bytecode Representation - org.opalj.br).
    • a scalable, easily customizable framework for the abstract interpretation of Java bytecode (Abstract Interpretation Framework - org.opalj.ai).
    • a library to extract dependencies between code elements and to facilitate checking architecture definitions.
    • a library for the lightweight manipulation and creation of Java bytecode (Bytecode Assembler).

    General Design Decisions

    Thread Safety

    Unless explicitly noted, OPAL is thread safe. I.e., the classes defined by OPAL can be considered to be thread safe unless otherwise stated. (For example, it is possible to read and process class files concurrently without explicit synchronization on the client side.)

    No null Values

    Unless explicitly noted, OPAL does not null values I.e., fields that are accessible will never contain null values and methods will never return null. If a method accepts null as a value for a parameter or returns a null value it is always explicitly documented. In general, the behavior of methods that are passed null values is undefined unless explicitly documented.

    No Typecasts for Collections

    For efficiency reasons, OPAL sometimes uses mutable data-structures internally. After construction time, these data-structures are generally represented using their generic interfaces (e.g., scala.collection.{Set,Map}). However, a downcast (e.g., to add/remove elements) is always forbidden as it would effectively prevent thread-safety.

    Assertions

    OPAL makes heavy use of Scala's Assertion Facility to facilitate writing correct code. Hence, for production builds (after thorough testing(!)) it is highly recommend to build OPAL again using -Xdisable-assertions.

    Definition Classes
    org
  • package collection

    OPAL's collection library is primarily designed with high performance in mind.

    Design Goals

    OPAL's collection library is primarily designed with high performance in mind. I.e., all methods provided by the collection library are reasonably optimized. However, providing a very large number of methods is a non-goal. Overall, OPAL's collection library provides:

    • collection classes that are manually specialized for primitive data-types.
    • collection classes that are optimized for particularly small collections of values.
    • collection classes that target special use cases such as using a collection as a workset/worklist.
    • collection classes that offer special methods that minimize the number of steps when compared to general purpose methods.

    Integration With Scala's Collection Library

    Hence, OPAL's collection library complements Scala's default collection library and is not intended to replace it. Integration with Scala's collection library is primarily provided by means of iterators (OPAL's Iterators inherit from Scala's Iterators). Furthermore the companion object of each of OPAL's collection classes generally provides factory methods that facilitate the conversion from Scala collection classes to OPAL collection classes.

    Status

    The collection library is growing. Nevertheless, the existing classes are production ready.

    Definition Classes
    opalj
  • package immutable
    Definition Classes
    collection
  • package mutable
    Definition Classes
    collection
  • BitSet
  • CompleteCollection
  • EqualSets
  • IncompleteCollection
  • IntCollectionWithStableOrdering
  • IntIterator
  • IntSet
  • LongCollectionWithStableOrdering
  • LongIterator
  • LongSet
  • QualifiedCollection
  • RefIndexedView
  • RefIterator
  • SetRelation
  • SingletonSet
  • StrictSubset
  • StrictSuperset
  • UID
  • UIDValue
  • UncomparableSets

abstract class IntIterator extends AbstractIterator[Int]

Iterator over a collection of primitive int value; basically overrides all inherited methods to avoid (un)boxing.

Self Type
IntIterator
Note

No guarantee is given what will happen if next is called after hasNext would return false.

Linear Supertypes
AbstractIterator[Int], Iterator[Int], TraversableOnce[Int], GenTraversableOnce[Int], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IntIterator
  2. AbstractIterator
  3. Iterator
  4. TraversableOnce
  5. GenTraversableOnce
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntIterator()

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
    Definition Classes
    Iterator

Abstract Value Members

  1. abstract def hasNext: Boolean
    Definition Classes
    Iterator
  2. abstract def next(): Int

    Returns the next value if hasNext has returned true; if hasNext has returned false and next is called, the result is undefined.

    Returns the next value if hasNext has returned true; if hasNext has returned false and next is called, the result is undefined. The method may throw any exception, e.g., an NullPointerException, or just return the last value; however, the behavior is undefined and subject to change without notice!

    Definition Classes
    IntIterator → Iterator

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: Int](that: ⇒ GenTraversableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  4. def /:[B](z: B)(op: (B, Int) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  5. def :\[B](z: B)(op: (Int, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  8. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  9. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  10. def aggregate[B](z: ⇒ B)(seqop: (B, Int) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def buffered: BufferedIterator[Int]
    Definition Classes
    Iterator
  13. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  14. def collect[B](pf: PartialFunction[Int, B]): 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.

  15. def collectFirst[B](pf: PartialFunction[Int, B]): Option[B]
    Definition Classes
    TraversableOnce
  16. def contains(i: Int): Boolean
  17. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  18. def copyToArray(size: Int): Array[Int]

    Copies all elements to a new array of the given size.

    Copies all elements to a new array of the given size.

    Note

    This method should be overwritten, when the underlying collection is already any array and more efficient operation, aka System.arrayCopy can be used.

  19. def copyToArray[B >: Int](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  20. def copyToArray[B >: Int](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  21. def copyToArray[B >: Int](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  22. def copyToBuffer[B >: Int](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  23. def corresponds[B](that: GenTraversableOnce[B])(p: (Int, B) ⇒ Boolean): Boolean
    Definition Classes
    Iterator
  24. def count(p: (Int) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. def drop(n: Int): Iterator[Int]
    Definition Classes
    Iterator
  26. def dropWhile(p: (Int) ⇒ Boolean): Iterator[Int]
    Definition Classes
    Iterator
  27. def duplicate: (Iterator[Int], Iterator[Int])
    Definition Classes
    Iterator
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  30. def exists(p: (Int) ⇒ Boolean): Boolean
    Definition Classes
    IntIterator → Iterator → TraversableOnce → GenTraversableOnce
  31. final def filter(p: (Int) ⇒ Boolean): IntIterator
    Definition Classes
    IntIterator → Iterator
  32. def filterNot(p: (Int) ⇒ Boolean): Iterator[Int]
    Definition Classes
    Iterator
  33. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def find(p: (Int) ⇒ Boolean): Option[Int]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  35. def flatMap[T](f: (Int) ⇒ RefIterator[T]): RefIterator[T]
  36. def flatMap(f: (Int) ⇒ IntIterator): IntIterator
  37. def flatMap[B](f: (Int) ⇒ GenTraversableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  38. def fold[A1 >: Int](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def foldLeft(start: Int)(f: (Int, Int) ⇒ Int): Int
  40. def foldLeft[B](start: B)(f: (B, Int) ⇒ B): B
    Definition Classes
    IntIterator → TraversableOnce → GenTraversableOnce
  41. def foldRight[B](z: B)(op: (Int, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  42. def forall(p: (Int) ⇒ Boolean): Boolean
    Definition Classes
    IntIterator → Iterator → TraversableOnce → GenTraversableOnce
  43. def foreach[U](f: (Int) ⇒ U): Unit
    Definition Classes
    IntIterator → Iterator → TraversableOnce → GenTraversableOnce
  44. def foreachWhile[U](p: (Int) ⇒ Boolean)(f: (Int) ⇒ U): Unit
  45. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  46. def grouped[B >: Int](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  47. def hasDefiniteSize: Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  48. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  49. def indexOf[B >: Int](elem: B, from: Int): Int
    Definition Classes
    Iterator
  50. def indexOf[B >: Int](elem: B): Int
    Definition Classes
    Iterator
  51. def indexWhere(p: (Int) ⇒ Boolean, from: Int): Int
    Definition Classes
    Iterator
  52. def indexWhere(p: (Int) ⇒ Boolean): Int
    Definition Classes
    Iterator
  53. def isEmpty: Boolean
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  54. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  55. def isTraversableAgain: Boolean
    Definition Classes
    Iterator → GenTraversableOnce
  56. def length: Int
    Definition Classes
    Iterator
  57. def map[T](f: (Int) ⇒ T): RefIterator[T]
    Definition Classes
    IntIterator → Iterator
  58. def map(f: (Int) ⇒ Long): LongIterator
  59. def map(f: (Int) ⇒ Int): IntIterator
  60. def max[B >: Int](implicit cmp: Ordering[B]): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def maxBy[B](f: (Int) ⇒ B)(implicit cmp: Ordering[B]): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def min[B >: Int](implicit cmp: Ordering[B]): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def minBy[B](f: (Int) ⇒ B)(implicit cmp: Ordering[B]): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  68. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  70. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  71. def padTo[A1 >: Int](len: Int, elem: A1): Iterator[A1]
    Definition Classes
    Iterator
  72. def partition(p: (Int) ⇒ Boolean): (Iterator[Int], Iterator[Int])
    Definition Classes
    Iterator
  73. def patch[B >: Int](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  74. def product[B >: Int](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  75. def reduce[A1 >: Int](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def reduceLeft[B >: Int](op: (B, Int) ⇒ B): B
    Definition Classes
    TraversableOnce
  77. def reduceLeftOption[B >: Int](op: (B, Int) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def reduceOption[A1 >: Int](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def reduceRight[B >: Int](op: (Int, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduceRightOption[B >: Int](op: (Int, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def reversed: List[Int]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  82. def sameElements(that: Iterator[_]): Boolean
    Definition Classes
    Iterator
  83. def sameValues(that: IntIterator): Boolean

    Compares the returned values to check if the iteration order is the same.

    Compares the returned values to check if the iteration order is the same.

    Both iterators may be consumed up to an arbitrary point.

  84. def scanLeft[B](z: B)(op: (B, Int) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  85. def scanRight[B](z: B)(op: (Int, B) ⇒ B): Iterator[B]
    Definition Classes
    Iterator
  86. def seq: Iterator[Int]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  87. def size: Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  88. def sizeHintIfCheap: Int
    Attributes
    protected[scala.collection]
    Definition Classes
    GenTraversableOnce
  89. def slice(from: Int, until: Int): Iterator[Int]
    Definition Classes
    Iterator
  90. def sliceIterator(from: Int, until: Int): Iterator[Int]
    Attributes
    protected
    Definition Classes
    Iterator
  91. def sliding[B >: Int](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  92. def span(p: (Int) ⇒ Boolean): (Iterator[Int], Iterator[Int])
    Definition Classes
    Iterator
  93. def sum[B >: Int](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  94. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  95. def take(n: Int): Iterator[Int]
    Definition Classes
    Iterator
  96. def takeWhile(p: (Int) ⇒ Boolean): Iterator[Int]
    Definition Classes
    Iterator
  97. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Int, Col[Int]]): Col[Int]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. def toArray: Array[Int]

    Note

    This method, as well as the generic toArray should be overwritten when the size is known.

  99. def toArray[B >: Int](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  100. def toBuffer[B >: Int]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  101. def toChain: Chain[Int]
  102. def toIndexedSeq: IndexedSeq[Int]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def toIterable: Iterable[Int]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toIterator: Iterator[Int]
    Definition Classes
    Iterator → GenTraversableOnce
  105. def toList: List[Int]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def toMap[T, U](implicit ev: <:<[Int, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toSeq: Seq[Int]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def toSet: IntTrieSet
  109. def toSet[B >: Int]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def toSortedSet: IntArraySet

    Note

    This method should be overwritten, when the underlying collection is already sorted.

  111. def toStream: Stream[Int]
    Definition Classes
    Iterator → GenTraversableOnce
  112. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  113. def toTraversable: Traversable[Int]
    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  114. def toVector: Vector[Int]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  116. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  117. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  118. def withFilter(p: (Int) ⇒ Boolean): IntIterator
    Definition Classes
    IntIterator → Iterator
  119. def zip[B](that: Iterator[B]): Iterator[(Int, B)]
    Definition Classes
    Iterator
  120. def zipAll[B, A1 >: Int, B1 >: B](that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]
    Definition Classes
    Iterator
  121. def zipWithIndex: Iterator[(Int, Int)]
    Definition Classes
    Iterator

Inherited from AbstractIterator[Int]

Inherited from Iterator[Int]

Inherited from TraversableOnce[Int]

Inherited from GenTraversableOnce[Int]

Inherited from AnyRef

Inherited from Any

Ungrouped