Groovy - Property Missing
//Groovy supports propertyMissing for dealing with property resolution attempts.
class Foo {
def propertyMissing(String name) { name }
}
def f = new Foo()
f.boo
we can override groovy error descriptions
//Groovy supports propertyMissing for dealing with property resolution attempts.
class Foo {
def propertyMissing(String name) { name }
}
def f = new Foo()
f.boo
we can override groovy error descriptions
Comments
Post a Comment