Groovy web console

subscribe to the feed Subscribe
to this
site
Method Missing example (via #groovywebconsole)
tweet this snippet Tweet
this
script

Method Missing example

Published 3 months ago by Federico Piazza with tags groovy methodmissing
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
class A {
    def methodMissing(String name, args) {
        println("Name: $name")
        println("Args: $args")
    }
}

A a = new A()

a.PCM_OP_CODE('<FLIST></FLIST>', 0)
println ''
a.OTRO('<FLIST2></FLIST2>')