def methods = obj.getClass().methods.collect { it.name }
println methods.each {println it}
//courtesy: my week memory, lazyness and https://stackoverflow.com/questions/22065290/how-to-get-all-method-names-of-a-class-without-inherited-methods-with-groovy
Created
July 11, 2019 15:35
-
-
Save saurabh-sp-tripathi/4a3526f13ac7b49966dc0a78bbcd1970 to your computer and use it in GitHub Desktop.
quick copy paste for jenkins script console
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment