Clazz.declarePackage ("java.text");
var c$ = Clazz.decorateAsClass (function () {
this.pattern = null;
Clazz.instantialize (this, arguments);
}, java.text, "MessageFormat");
Clazz.makeConstructor (c$, 
function (pattern) {
this.pattern = pattern;
}, "~S");
Clazz.makeConstructor (c$, 
function (pattern, locale) {
this.pattern = pattern;
}, "~S,java.util.Locale");
c$.format = Clazz.defineMethod (c$, "format", 
function (pattern, args) {
return pattern.replace (/\{(\d+)\}/g, function ($0, $1) {
var i = parseInt ($1);
if (args == null) return null;
return args[i];
});
}, "~S,~A");
Clazz.defineMethod (c$, "format", 
function (obj) {
return java.text.MessageFormat.format (this.pattern,  Clazz.newArray (-1, [obj]));
}, "~O");
;//5.0.1-v2 Sat Nov 25 17:52:34 CST 2023
