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