File size: 2,302 Bytes
233f6d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Clazz.load(["java.util.ResourceBundle"],"java.util.ListResourceBundle",["java.util.Enumeration","$.Hashtable"],function(){
c$=Clazz.decorateAsClass(function(){
this.table=null;
Clazz.instantialize(this,arguments);
},java.util,"ListResourceBundle",java.util.ResourceBundle);
Clazz.defineMethod(c$,"getKeys",
function(){
if(this.table==null){
this.initializeTable();
}if(this.parent==null){
return this.table.keys();
}return((Clazz.isClassDefined("java.util.ListResourceBundle$1")?0:java.util.ListResourceBundle.$ListResourceBundle$1$()),Clazz.innerTypeInstance(java.util.ListResourceBundle$1,this,null));
});
Clazz.overrideMethod(c$,"handleGetObject",
function(key){
if(this.table==null){
this.initializeTable();
}return this.table.get(key);
},"~S");
Clazz.defineMethod(c$,"initializeTable",
($fz=function(){
if(this.table==null){
var contents=this.getContents();
this.table=new java.util.Hashtable(Math.floor(contents.length/3)*4+3);
for(var i=0;i<contents.length;i++){
this.table.put(contents[i][0],contents[i][1]);
}
}},$fz.isPrivate=true,$fz));
c$.$ListResourceBundle$1$=function(){
Clazz.pu$h(self.c$);
c$=Clazz.decorateAsClass(function(){
Clazz.prepareCallback(this,arguments);
this.local=null;
this.pEnum=null;
this.$nextElement=null;
Clazz.instantialize(this,arguments);
},java.util,"ListResourceBundle$1",null,java.util.Enumeration);
Clazz.prepareFields(c$,function(){
this.local=this.b$["java.util.ListResourceBundle"].table.keys();
this.pEnum=this.b$["java.util.ListResourceBundle"].parent.getKeys();
});
Clazz.defineMethod(c$,"findNext",
($fz=function(){
if(this.$nextElement!=null){
return true;
}while(this.pEnum.hasMoreElements()){
var next=this.pEnum.nextElement();
if(!this.b$["java.util.ListResourceBundle"].table.containsKey(next)){
this.$nextElement=next;
return true;
}}
return false;
},$fz.isPrivate=true,$fz));
Clazz.defineMethod(c$,"hasMoreElements",
function(){
if(this.local.hasMoreElements()){
return true;
}return this.findNext();
});
Clazz.defineMethod(c$,"nextElement",
function(){
if(this.local.hasMoreElements()){
return this.local.nextElement();
}if(this.findNext()){
var result=this.$nextElement;
this.$nextElement=null;
return result;
}return this.pEnum.nextElement();
});
c$=Clazz.p0p();
};
});