JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / site / j2s / com / stevesoft / pat / BackG.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.BackG", ["com.stevesoft.pat.patInt"], function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.c = '\0';\r
5 this.altc = '\0';\r
6 this.altc2 = '\0';\r
7 this.mask = 0;\r
8 Clazz.instantialize (this, arguments);\r
9 }, com.stevesoft.pat, "BackG", com.stevesoft.pat.Pattern);\r
10 Clazz.makeConstructor (c$, \r
11 function () {\r
12 Clazz.superConstructor (this, com.stevesoft.pat.BackG, []);\r
13 });\r
14 Clazz.overrideMethod (c$, "matchInternal", \r
15 function (pos, pt) {\r
16 return pos == pt.lastPos ? this.nextMatch (pos, pt) : -1;\r
17 }, "~N,com.stevesoft.pat.Pthings");\r
18 Clazz.overrideMethod (c$, "toString", \r
19 function () {\r
20 return "\\G" + this.nextString ();\r
21 });\r
22 Clazz.overrideMethod (c$, "minChars", \r
23 function () {\r
24 return  new com.stevesoft.pat.patInt (1);\r
25 });\r
26 Clazz.overrideMethod (c$, "maxChars", \r
27 function () {\r
28 return  new com.stevesoft.pat.patInt (1);\r
29 });\r
30 Clazz.overrideMethod (c$, "clone1", \r
31 function (h) {\r
32 return  new com.stevesoft.pat.BackG ();\r
33 }, "java.util.Hashtable");\r
34 });\r