- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scalap and determining if ClassSymbol is Class or Object
Thu, 2011-06-09, 22:13
I am trying to determine if a ClassSymbol is an Object or a Class:
ScalaSigParser.parse(cf).foreach(_.symbols.foreach({
case cs@ClassSymbol(symbolInfo: SymbolInfo, thisTypeRef: Option[Int]) =>
val cn = symbolInfo.name
Anyone knows how can this be done?
for scalap 2.9.0 & scala 2.9.0
Thanks,
Kostas
ScalaSigParser.parse(cf).foreach(_.symbols.foreach({
case cs@ClassSymbol(symbolInfo: SymbolInfo, thisTypeRef: Option[Int]) =>
val cn = symbolInfo.name
Anyone knows how can this be done?
for scalap 2.9.0 & scala 2.9.0
Thanks,
Kostas