public
Created

case object PingObject and case class PingClass desugared

  • Download Gist
gistfile1.scala
Scala
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
[[syntax trees at end of cleanup]]// Scala source: app.scala
package <empty> {
@serializable final case class PingObject extends java.lang.Object with ScalaObject with Product {
def productIterator(): Iterator = scala.Product$class.productIterator(PingObject.this);
@deprecated("use productIterator instead") def productElements(): Iterator = scala.Product$class.productElements(PingObject.this);
final override def toString(): java.lang.String = "PingObject";
override def productPrefix(): java.lang.String = "PingObject";
override def productArity(): Int = 0;
override def productElement(x$1: Int): java.lang.Object = {
<synthetic> val temp1: Int = x$1;
{
throw new java.lang.IndexOutOfBoundsException(scala.Int.box(x$1).toString())
}
};
override def canEqual(x$1: java.lang.Object): Boolean = x$1.$isInstanceOf[object PingObject]();
protected def readResolve(): java.lang.Object = PingObject;
def this(): object PingObject = {
PingObject.super.this();
scala.Product$class./*Product$class*/$init$(PingObject.this);
()
}
};
@serializable case class PingClass extends java.lang.Object with ScalaObject with Product {
def productIterator(): Iterator = scala.Product$class.productIterator(PingClass.this);
@deprecated("use productIterator instead") def productElements(): Iterator = scala.Product$class.productElements(PingClass.this);
override def hashCode(): Int = ScalaRunTime.this._hashCode(PingClass.this);
override def toString(): java.lang.String = ScalaRunTime.this._toString(PingClass.this);
override def equals(x$1: java.lang.Object): Boolean = PingClass.this.eq(x$1).||({
<synthetic> val temp2: java.lang.Object = x$1;
if (temp2.$isInstanceOf[PingClass]())
{
x$1.$asInstanceOf[PingClass]().canEqual(PingClass.this)
}
else
{
false
}
});
override def productPrefix(): java.lang.String = "PingClass";
override def productArity(): Int = 0;
override def productElement(x$1: Int): java.lang.Object = {
<synthetic> val temp4: Int = x$1;
{
throw new java.lang.IndexOutOfBoundsException(scala.Int.box(x$1).toString())
}
};
override def canEqual(x$1: java.lang.Object): Boolean = x$1.$isInstanceOf[PingClass]();
def this(): PingClass = {
PingClass.super.this();
scala.Product$class./*Product$class*/$init$(PingClass.this);
()
}
};
final <synthetic> class PingClass extends scala.runtime.AbstractFunction0 with ScalaObject {
case <synthetic> def unapply(x$0: PingClass): Boolean = if (x$0.==(null))
false
else
true;
case <synthetic> def apply(): PingClass = new PingClass();
case <synthetic> <bridge> def apply(): java.lang.Object = PingClass.this.apply();
def this(): object PingClass = {
PingClass.super.this();
()
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.