Skip to content

Instantly share code, notes, and snippets.

@pbadenski
Created July 12, 2016 10:19
Show Gist options
  • Save pbadenski/982dc47e8636a0f706c7bf46d610574f to your computer and use it in GitHub Desktop.
Save pbadenski/982dc47e8636a0f706c7bf46d610574f to your computer and use it in GitHub Desktop.
Outer implements DelayedInit
public final class io.halik.scala.Outer$delayedInit$body extends scala.runtime.AbstractFunction0
minor version: 0
major version: 50
flags: ACC_PUBLIC, ACC_FINAL, ACC_SUPER
{
private final io.halik.scala.Outer $outer;
descriptor: Lio/halik/scala/Outer;
flags: ACC_PRIVATE, ACC_FINAL
(...)
}
public class io.halik.scala.Outer implements scala.DelayedInit
minor version: 0
major version: 50
flags: ACC_PUBLIC, ACC_SUPER
{
private final scala.collection.mutable.ListBuffer<scala.Function0<scala.runtime.BoxedUnit>> code;
descriptor: Lscala/collection/mutable/ListBuffer;
flags: ACC_PRIVATE, ACC_FINAL
Signature: #13 // Lscala/collection/mutable/ListBuffer<Lscala/Function0<Lscala/runtime/BoxedUnit;>;>;
(...)
}
class Outer extends DelayedInit {
private val code = new ListBuffer[() => Unit]
override def delayedInit(body: => Unit) {
code += (() => body)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment