Created
May 19, 2011 10:12
-
-
Save debasishg/980501 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Scala version 2.9.0.final (OpenJDK Server VM, Java 1.6.0_20). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> import tools.scalap.scalax.rules.scalasig._ | |
import tools.scalap.scalax.rules.scalasig._ | |
scala> import scala.runtime._ | |
import scala.runtime._ | |
scala> ScalaSigParser.parse(classOf[AddressWithOptionalCity]) | |
res0: Option[scala.tools.scalap.scalax.rules.scalasig.ScalaSig] = None | |
scala> ScalaSigParser.parse(classOf[Address]) | |
res1: Option[scala.tools.scalap.scalax.rules.scalasig.ScalaSig] = None | |
scala> ScalaSigParser.parse(classOf[List[Int]]) | |
res2: Option[scala.tools.scalap.scalax.rules.scalasig.ScalaSig] = | |
Some(ScalaSig version 5.0 | |
0: ClassSymbol(List, owner=scala.collection.immutable, flags=90, info=9 ,None) | |
1: List | |
2: scala.collection.immutable | |
3: immutable | |
4: scala.collection | |
5: collection | |
6: scala | |
7: scala | |
8: NoSymbol | |
9: PolyType(ClassInfoType(ClassSymbol(List, owner=scala.collection.immutable, flags=90, info=9 ,None),List(TypeRefType(ThisType(java.lang),java.lang.Object,List()), TypeRefType(ThisType(scala.collection.immutable),scala.collection.immutable.LinearSeq,List(TypeRefType(NoPrefixType,TypeSymbol(A, owner=0, flags=12100, info=27 ),List()))), TypeRefType(ThisType(scala),scala.Product,List()), TypeRefType(ThisType(scala.collection.generic),scala.collection.generic.GenericTraversableTemplate,List(TypeRefType(NoPre... | |
scala> import scala.reflect.generic.ByteCodecs | |
import scala.reflect.generic.ByteCodecs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment