public
Created

scala .classes

  • Download Gist
Asset.txt
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
//Foo.class
 
class Foo(val name:String){
val buf = new Array[Byte](4096)
def printName = println(_:String)
def printOther(op:String => Unit) = op("Somthing")
}
 
 
shairon@infusion tmp: scalac Foo.scala
 
 
shairon@infusion tmp: ls -lh Foo*
-rw-r--r-- 1 shairon wheel 991B Mar 19 19:33 Foo$$anonfun$printName$1.class
-rw-r--r-- 1 shairon wheel 403B Mar 19 18:15 Foo$.class
-rw-r--r-- 1 shairon wheel 1.5K Mar 19 19:33 Foo.class
-rw-r--r--@ 1 shairon wheel 153B Mar 19 19:33 Foo.scala
 
 
 
 
shairon@infusion tmp: javap Foo
Compiled from "Foo.scala"
public class Foo extends java.lang.Object implements scala.ScalaObject{
public java.lang.String name();
public byte[] buf();
public scala.Function1 printName();
public void printOther(scala.Function1);
public Foo(java.lang.String);
}
 
 
shairon@infusion tmp: javap Foo$
Compiled from "Foo.scala"
public final class Foo$ extends java.lang.Object implements scala.ScalaObject{
public static final Foo$ MODULE$;
public static {};
public byte[] buf();
}
 
 
shairon@infusion tmp: javap Foo\$\$anonfun\$printName\$1
Compiled from "Foo.scala"
public final class Foo$$anonfun$printName$1 extends scala.runtime.AbstractFunction1 implements scala.Serializable{
public static final long serialVersionUID;
public static {};
public final void apply(java.lang.String);
public final java.lang.Object apply(java.lang.Object);
public Foo$$anonfun$printName$1(Foo);
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.