Scala Compiler2.12.20 < Back
 

# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package backend
  Definition Classes
    nsc
-  package jvm
  Definition Classes
    backend
-  package opt
  Definition Classes
    jvm
-  abstract class BoxUnbox extends AnyRef
  Definition Classes
    opt
- BoxConsumer
- BoxCreation
- BoxKind
- BoxedPrimitiveTypeCheck
- CopyOpsIterator
- Drop
- EscapingConsumer
- InstanceCreation
- ModuleFactory
- ModuleGetter
- PrimitiveBox
- PrimitiveBoxingGetter
- PrimitiveUnboxingGetter
- Ref
- StaticFactory
- StaticGetterOrInstanceRead
- StaticSetterOrInstanceWrite
- Tuple

c

scala.tools.nsc.backend.jvm.opt.BoxUnbox

# CopyOpsIterator 

###

#### class CopyOpsIterator extends Iterator[AbstractInsnNode]

For a set of box creation operations and a corresponding set of box consumer operations, this iterator returns all copy operations (load, store, dup) that are in between.

Source
  BoxUnbox.scala

Linear Supertypes
collection.Iterator[AbstractInsnNode], collection.TraversableOnce[AbstractInsnNode], GenTraversableOnce[AbstractInsnNode], AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. CopyOpsIterator
2. Iterator
3. TraversableOnce
4. GenTraversableOnce
5. AnyRef
6. 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 CopyOpsIterator(initialCreations: Set[BoxCreation], finalCons: Set[BoxConsumer], prodCons: (backendUtils)#ProdConsAnalyzer)

### 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
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  def +(other: String): String
   Implicit
     This member is added by an implicit conversion from CopyOpsIterator to any2stringadd[CopyOpsIterator] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ++[B >: AbstractInsnNode](that: ⇒ GenTraversableOnce[B]): collection.Iterator[B]
   Definition Classes
     Iterator
5.  def ->[B](y: B): (CopyOpsIterator, B)
   Implicit
     This member is added by an implicit conversion from CopyOpsIterator to ArrowAssoc[CopyOpsIterator] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
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, AbstractInsnNode) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
11.  final def asInstanceOf[T0]: T0
    Definition Classes
      Any
12.  def buffered: collection.BufferedIterator[AbstractInsnNode]
    Definition Classes
      Iterator
13.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
14.  def collect[B](pf: PartialFunction[AbstractInsnNode, 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`.

15.  def collectFirst[B](pf: PartialFunction[AbstractInsnNode, B]): Option[B]
    Definition Classes
      TraversableOnce
16.  def contains(elem: Any): Boolean
    Definition Classes
      Iterator
17.  def copyToArray[B >: AbstractInsnNode](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
18.  def copyToArray[B >: AbstractInsnNode](xs: Array[B]): Unit
    Definition Classes
      TraversableOnce → GenTraversableOnce
19.  def copyToArray[B >: AbstractInsnNode](xs: Array[B], start: Int): Unit
    Definition Classes
      TraversableOnce → GenTraversableOnce
20.  def copyToBuffer[B >: AbstractInsnNode](dest: Buffer[B]): Unit
    Definition Classes
      TraversableOnce
21.  def corresponds[B](that: GenTraversableOnce[B])(p: (AbstractInsnNode, B) ⇒ Boolean): Boolean
    Definition Classes
      Iterator
22.  def count(p: (AbstractInsnNode) ⇒ Boolean): Int
    Definition Classes
      TraversableOnce → GenTraversableOnce
23.  def drop(n: Int): collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator
24.  def dropWhile(p: (AbstractInsnNode) ⇒ Boolean): collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator
25.  def duplicate: (collection.Iterator[AbstractInsnNode], collection.Iterator[AbstractInsnNode])
    Definition Classes
      Iterator
26.  def ensuring(cond: (CopyOpsIterator) ⇒ Boolean, msg: ⇒ Any): CopyOpsIterator
    Implicit
      This member is added by an implicit conversion from CopyOpsIterator to Ensuring[CopyOpsIterator] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
27.  def ensuring(cond: (CopyOpsIterator) ⇒ Boolean): CopyOpsIterator
    Implicit
      This member is added by an implicit conversion from CopyOpsIterator to Ensuring[CopyOpsIterator] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
28.  def ensuring(cond: Boolean, msg: ⇒ Any): CopyOpsIterator
    Implicit
      This member is added by an implicit conversion from CopyOpsIterator to Ensuring[CopyOpsIterator] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
29.  def ensuring(cond: Boolean): CopyOpsIterator
    Implicit
      This member is added by an implicit conversion from CopyOpsIterator to Ensuring[CopyOpsIterator] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
30.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
31.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
32.  def exists(p: (AbstractInsnNode) ⇒ Boolean): Boolean
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
33.  def filter(p: (AbstractInsnNode) ⇒ Boolean): collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator
34.  def filterNot(p: (AbstractInsnNode) ⇒ Boolean): collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator
35.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
36.  def find(p: (AbstractInsnNode) ⇒ Boolean): Option[AbstractInsnNode]
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
37.  def flatMap[B](f: (AbstractInsnNode) ⇒ GenTraversableOnce[B]): collection.Iterator[B]
    Definition Classes
      Iterator
38.  def fold[A1 >: AbstractInsnNode](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
      TraversableOnce → GenTraversableOnce
39.  def foldLeft[B](z: B)(op: (B, AbstractInsnNode) ⇒ B): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
40.  def foldRight[B](z: B)(op: (AbstractInsnNode, B) ⇒ B): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
41.  def forall(p: (AbstractInsnNode) ⇒ Boolean): Boolean
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
42.  def foreach[U](f: (AbstractInsnNode) ⇒ U): Unit
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
43.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
44.  def grouped[B >: AbstractInsnNode](size: Int): GroupedIterator[B]
    Definition Classes
      Iterator
45.  def hasDefiniteSize: Boolean
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
46.  def hasNext: Boolean
    Definition Classes
      CopyOpsIterator → Iterator
47.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
48.  def indexOf[B >: AbstractInsnNode](elem: B, from: Int): Int
    Definition Classes
      Iterator
49.  def indexOf[B >: AbstractInsnNode](elem: B): Int
    Definition Classes
      Iterator
50.  def indexWhere(p: (AbstractInsnNode) ⇒ Boolean, from: Int): Int
    Definition Classes
      Iterator
51.  def indexWhere(p: (AbstractInsnNode) ⇒ Boolean): Int
    Definition Classes
      Iterator
52.  def isEmpty: Boolean
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
53.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
54.  def isTraversableAgain: Boolean
    Definition Classes
      Iterator → GenTraversableOnce
55.  def length: Int
    Definition Classes
      Iterator
56.  def map[B](f: (AbstractInsnNode) ⇒ B): collection.Iterator[B]
    Definition Classes
      Iterator
57.  def max[B >: AbstractInsnNode](implicit cmp: Ordering[B]): AbstractInsnNode
    Definition Classes
      TraversableOnce → GenTraversableOnce
58.  def maxBy[B](f: (AbstractInsnNode) ⇒ B)(implicit cmp: Ordering[B]): AbstractInsnNode
    Definition Classes
      TraversableOnce → GenTraversableOnce
59.  def min[B >: AbstractInsnNode](implicit cmp: Ordering[B]): AbstractInsnNode
    Definition Classes
      TraversableOnce → GenTraversableOnce
60.  def minBy[B](f: (AbstractInsnNode) ⇒ B)(implicit cmp: Ordering[B]): AbstractInsnNode
    Definition Classes
      TraversableOnce → GenTraversableOnce
61.  def mkString: String
    Definition Classes
      TraversableOnce → GenTraversableOnce
62.  def mkString(sep: String): String
    Definition Classes
      TraversableOnce → GenTraversableOnce
63.  def mkString(start: String, sep: String, end: String): String
    Definition Classes
      TraversableOnce → GenTraversableOnce
64.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
65.  def next(): AbstractInsnNode
    Definition Classes
      CopyOpsIterator → Iterator
66.  def nonEmpty: Boolean
    Definition Classes
      TraversableOnce → GenTraversableOnce
67.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
68.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
69.  def padTo[A1 >: AbstractInsnNode](len: Int, elem: A1): collection.Iterator[A1]
    Definition Classes
      Iterator
70.  def partition(p: (AbstractInsnNode) ⇒ Boolean): (collection.Iterator[AbstractInsnNode], collection.Iterator[AbstractInsnNode])
    Definition Classes
      Iterator
71.  def patch[B >: AbstractInsnNode](from: Int, patchElems: collection.Iterator[B], replaced: Int): collection.Iterator[B]
    Definition Classes
      Iterator
72.  def product[B >: AbstractInsnNode](implicit num: Numeric[B]): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
73.  def reduce[A1 >: AbstractInsnNode](op: (A1, A1) ⇒ A1): A1
    Definition Classes
      TraversableOnce → GenTraversableOnce
74.  def reduceLeft[B >: AbstractInsnNode](op: (B, AbstractInsnNode) ⇒ B): B
    Definition Classes
      TraversableOnce
75.  def reduceLeftOption[B >: AbstractInsnNode](op: (B, AbstractInsnNode) ⇒ B): Option[B]
    Definition Classes
      TraversableOnce → GenTraversableOnce
76.  def reduceOption[A1 >: AbstractInsnNode](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
      TraversableOnce → GenTraversableOnce
77.  def reduceRight[B >: AbstractInsnNode](op: (AbstractInsnNode, B) ⇒ B): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
78.  def reduceRightOption[B >: AbstractInsnNode](op: (AbstractInsnNode, B) ⇒ B): Option[B]
    Definition Classes
      TraversableOnce → GenTraversableOnce
79.  def reversed: List[AbstractInsnNode]
    Attributes
      protected[this]
    Definition Classes
      TraversableOnce
80.  def sameElements(that: collection.Iterator[_]): Boolean
    Definition Classes
      Iterator
81.  def scanLeft[B](z: B)(op: (B, AbstractInsnNode) ⇒ B): collection.Iterator[B]
    Definition Classes
      Iterator
82.  def scanRight[B](z: B)(op: (AbstractInsnNode, B) ⇒ B): collection.Iterator[B]
    Definition Classes
      Iterator
83.  def seq: collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce
84.  def size: Int
    Definition Classes
      TraversableOnce → GenTraversableOnce
85.  def sizeHintIfCheap: Int
    Attributes
      protected[collection]
    Definition Classes
      GenTraversableOnce
86.  def slice(from: Int, until: Int): collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator
87.  def sliceIterator(from: Int, until: Int): collection.Iterator[AbstractInsnNode]
    Attributes
      protected
    Definition Classes
      Iterator
88.  def sliding[B >: AbstractInsnNode](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
      Iterator
89.  def span(p: (AbstractInsnNode) ⇒ Boolean): (collection.Iterator[AbstractInsnNode], collection.Iterator[AbstractInsnNode])
    Definition Classes
      Iterator
90.  def sum[B >: AbstractInsnNode](implicit num: Numeric[B]): B
    Definition Classes
      TraversableOnce → GenTraversableOnce
91.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
92.  def take(n: Int): collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator
93.  def takeWhile(p: (AbstractInsnNode) ⇒ Boolean): collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator
94.  def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, AbstractInsnNode, Col[AbstractInsnNode]]): Col[AbstractInsnNode]
    Definition Classes
      TraversableOnce → GenTraversableOnce
95.  def toArray[B >: AbstractInsnNode](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
      TraversableOnce → GenTraversableOnce
96.  def toBuffer[B >: AbstractInsnNode]: Buffer[B]
    Definition Classes
      TraversableOnce → GenTraversableOnce
97.  def toIndexedSeq: collection.immutable.IndexedSeq[AbstractInsnNode]
    Definition Classes
      TraversableOnce → GenTraversableOnce
98.  def toIterable: collection.Iterable[AbstractInsnNode]
    Definition Classes
      TraversableOnce → GenTraversableOnce
99.  def toIterator: collection.Iterator[AbstractInsnNode]
    Definition Classes
      Iterator → GenTraversableOnce
100.  def toList: List[AbstractInsnNode]
     Definition Classes
       TraversableOnce → GenTraversableOnce
101.  def toMap[T, U](implicit ev: <:<[AbstractInsnNode, (T, U)]): Map[T, U]
     Definition Classes
       TraversableOnce → GenTraversableOnce
102.  def toSeq: collection.Seq[AbstractInsnNode]
     Definition Classes
       TraversableOnce → GenTraversableOnce
103.  def toSet[B >: AbstractInsnNode]: Set[B]
     Definition Classes
       TraversableOnce → GenTraversableOnce
104.  def toStream: collection.immutable.Stream[AbstractInsnNode]
     Definition Classes
       Iterator → GenTraversableOnce
105.  def toString(): String
     Definition Classes
       Iterator → AnyRef → Any
106.  def toTraversable: collection.Traversable[AbstractInsnNode]
     Definition Classes
       Iterator → TraversableOnce → GenTraversableOnce
107.  def toVector: Vector[AbstractInsnNode]
     Definition Classes
       TraversableOnce → GenTraversableOnce
108.  final def wait(): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
109.  final def wait(arg0: Long, arg1: Int): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... )
110.  final def wait(arg0: Long): Unit
     Definition Classes
       AnyRef
     Annotations
       @throws( ... ) @native()
111.  def withFilter(p: (AbstractInsnNode) ⇒ Boolean): collection.Iterator[AbstractInsnNode]
     Definition Classes
       Iterator
112.  def zip[B](that: collection.Iterator[B]): collection.Iterator[(AbstractInsnNode, B)]
     Definition Classes
       Iterator
113.  def zipAll[B, A1 >: AbstractInsnNode, B1 >: B](that: collection.Iterator[B], thisElem: A1, thatElem: B1): collection.Iterator[(A1, B1)]
     Definition Classes
       Iterator
114.  def zipWithIndex: collection.Iterator[(AbstractInsnNode, Int)]
     Definition Classes
       Iterator
115.  def →[B](y: B): (CopyOpsIterator, B)
     Implicit
       This member is added by an implicit conversion from CopyOpsIterator to ArrowAssoc[CopyOpsIterator] performed by method ArrowAssoc in scala.Predef.
     Definition Classes
       ArrowAssoc

### Shadowed Implicit Value Members

1.  def filter(p: (AbstractInsnNode) ⇒ Boolean): collection.TraversableOnce[AbstractInsnNode]
   Implicit
     This member is added by an implicit conversion from CopyOpsIterator to MonadOps[AbstractInsnNode] 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:

         (copyOpsIterator: MonadOps[AbstractInsnNode]).filter(p)

   Definition Classes
     MonadOps
2.  def flatMap[B](f: (AbstractInsnNode) ⇒ GenTraversableOnce[B]): collection.TraversableOnce[B]
   Implicit
     This member is added by an implicit conversion from CopyOpsIterator to MonadOps[AbstractInsnNode] 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:

         (copyOpsIterator: MonadOps[AbstractInsnNode]).flatMap(f)

   Definition Classes
     MonadOps
3.  def map[B](f: (AbstractInsnNode) ⇒ B): collection.TraversableOnce[B]
   Implicit
     This member is added by an implicit conversion from CopyOpsIterator to MonadOps[AbstractInsnNode] 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:

         (copyOpsIterator: MonadOps[AbstractInsnNode]).map(f)

   Definition Classes
     MonadOps
4.  def withFilter(p: (AbstractInsnNode) ⇒ Boolean): collection.Iterator[AbstractInsnNode]
   Implicit
     This member is added by an implicit conversion from CopyOpsIterator to MonadOps[AbstractInsnNode] 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:

         (copyOpsIterator: MonadOps[AbstractInsnNode]).withFilter(p)

   Definition Classes
     MonadOps

### Deprecated Value Members

1.  def /:[B](z: B)(op: (B, AbstractInsnNode) ⇒ B): B
   Definition Classes
     TraversableOnce → GenTraversableOnce
   Annotations
     @deprecated
   Deprecated

     (Since version 2.12.10) Use foldLeft instead of /:

2.  def :\[B](z: B)(op: (AbstractInsnNode, B) ⇒ B): B
   Definition Classes
     TraversableOnce → GenTraversableOnce
   Annotations
     @deprecated
   Deprecated

     (Since version 2.12.10) Use foldRight instead of :\

3.  def formatted(fmtstr: String): String
   Implicit
     This member is added by an implicit conversion from CopyOpsIterator to StringFormat[CopyOpsIterator] performed by method StringFormat in scala.Predef.
   Definition Classes
     StringFormat
   Annotations
     @deprecated @inline()
   Deprecated

     (Since version 2.12.16) Use `formatString.format(value)` instead of `value.formatted(formatString)`, or use the `f""` string interpolator. In Java 15 and later, `formatted` resolves to the new method in String which has reversed parameters.

### Inherited from collection.Iterator[AbstractInsnNode]

### Inherited from collection.TraversableOnce[AbstractInsnNode]

### Inherited from GenTraversableOnce[AbstractInsnNode]

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion MonadOps from CopyOpsIterator to MonadOps[AbstractInsnNode]

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

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

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

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

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

### Ungrouped