JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / bin / com / stevesoft / pat / SubMark.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.SubMark", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.end_pos = 0;\r
5 this.start_pos = 0;\r
6 this.om = null;\r
7 Clazz.instantialize (this, arguments);\r
8 }, com.stevesoft.pat, "SubMark", com.stevesoft.pat.Pattern);\r
9 Clazz.overrideMethod (c$, "toString", \r
10 function () {\r
11 return "";\r
12 });\r
13 Clazz.overrideMethod (c$, "matchInternal", \r
14 function (i, pt) {\r
15 pt.marks[this.om.id + pt.nMarks] = i;\r
16 var ret = this.nextMatch (i, pt);\r
17 if (ret < 0) {\r
18 pt.marks[this.om.id + pt.nMarks] = -1;\r
19 }return ret;\r
20 }, "~N,com.stevesoft.pat.Pthings");\r
21 });\r