JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / com / stevesoft / pat / Any.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Any", ["com.stevesoft.pat.patInt"], function () {\r
3 c$ = Clazz.declareType (com.stevesoft.pat, "Any", com.stevesoft.pat.Pattern);\r
4 Clazz.overrideMethod (c$, "matchInternal", \r
5 function (pos, pt) {\r
6 if (pos < pt.src.length ()) {\r
7 if (pt.dotDoesntMatchCR) {\r
8 if (pt.src.charAt (pos) != '\n') {\r
9 return this.nextMatch (pos + 1, pt);\r
10 }} else {\r
11 return this.nextMatch (pos + 1, pt);\r
12 }}return -1;\r
13 }, "~N,com.stevesoft.pat.Pthings");\r
14 Clazz.overrideMethod (c$, "toString", \r
15 function () {\r
16 return "." + this.nextString ();\r
17 });\r
18 Clazz.overrideMethod (c$, "minChars", \r
19 function () {\r
20 return  new com.stevesoft.pat.patInt (1);\r
21 });\r
22 Clazz.overrideMethod (c$, "maxChars", \r
23 function () {\r
24 return  new com.stevesoft.pat.patInt (1);\r
25 });\r
26 Clazz.overrideMethod (c$, "clone1", \r
27 function (h) {\r
28 return  new com.stevesoft.pat.Any ();\r
29 }, "java.util.Hashtable");\r
30 });\r