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