|
Groovy example source code file (StaticImportTarget.groovy)
The Groovy StaticImportTarget.groovy source code
package groovy
class StaticImportTarget {
static cl = {'StaticImportTarget#static closure called'}
def static x(String message, int times) {
return message * times
}
def y(String message, int times) {
return x(message, times)
}
static z() {
assert false, "this.z()/super.z() was resolved to statically imported method"
}
}
Other Groovy examples (source code examples)Here is a short list of links related to this Groovy StaticImportTarget.groovy source code file: |
Other websites by Alvin Alexander:
Life/living in Alaska (OneMansAlaska.com)
How I Sold My Business (HowISoldMyBusiness.com)
Copyright 1998-2011 Alvin Alexander, devdaily.com
All Rights Reserved.