JAL-1807 test
[jalviewjs.git] / bin / com / stevesoft / pat / Backup.js
1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Backup", ["com.stevesoft.pat.patInt"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.bk = 0;
5 Clazz.instantialize (this, arguments);
6 }, com.stevesoft.pat, "Backup", com.stevesoft.pat.Pattern);
7 Clazz.makeConstructor (c$, 
8 function (ii) {
9 Clazz.superConstructor (this, com.stevesoft.pat.Backup, []);
10 this.bk = ii;
11 }, "~N");
12 Clazz.overrideMethod (c$, "toString", 
13 function () {
14 return "(?" + (this.bk < 0 ? ">" + (-this.bk) : "<" + this.bk) + ")" + this.nextString ();
15 });
16 Clazz.overrideMethod (c$, "matchInternal", 
17 function (pos, pt) {
18 if (pos < this.bk) {
19 return -1;
20 }return this.nextMatch (pos - this.bk, pt);
21 }, "~N,com.stevesoft.pat.Pthings");
22 Clazz.overrideMethod (c$, "minChars", 
23 function () {
24 return  new com.stevesoft.pat.patInt (-this.bk);
25 });
26 Clazz.overrideMethod (c$, "maxChars", 
27 function () {
28 return  new com.stevesoft.pat.patInt (-this.bk);
29 });
30 Clazz.overrideMethod (c$, "clone1", 
31 function (h) {
32 return  new com.stevesoft.pat.Backup (this.bk);
33 }, "java.util.Hashtable");
34 });