Skip to content

Instantly share code, notes, and snippets.

@The-Yoda
Created November 9, 2013 05:33
Show Gist options
  • Save The-Yoda/7382110 to your computer and use it in GitHub Desktop.
Save The-Yoda/7382110 to your computer and use it in GitHub Desktop.
Scala: Getting method names of a class
//obj is object of a class
var params : Array[String] = obj.getClass.getMethods.map(_.getName)
var j : Int = 0
while ({j < params.length}){
println(params(j))
j = j + 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment