module nativetest; metamodel "#native"; context String def : toInetAddress() : "#native"!"java.net.InetAddress" = "#native"!"java.net.InetAddress"::getByName(self); static def : main() : "#native"!"java.net.InetAddress" = '192.168.2.1'.toInetAddress().debug('InetAddress');