Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / com / stevesoft / pat / SubMark.js
1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.SubMark", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.end_pos = 0;
5 this.start_pos = 0;
6 this.om = null;
7 Clazz.instantialize (this, arguments);
8 }, com.stevesoft.pat, "SubMark", com.stevesoft.pat.Pattern);
9 Clazz.overrideMethod (c$, "toString", 
10 function () {
11 return "";
12 });
13 Clazz.overrideMethod (c$, "matchInternal", 
14 function (i, pt) {
15 pt.marks[this.om.id + pt.nMarks] = i;
16 var ret = this.nextMatch (i, pt);
17 if (ret < 0) {
18 pt.marks[this.om.id + pt.nMarks] = -1;
19 }return ret;
20 }, "~N,com.stevesoft.pat.Pthings");
21 });