JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / bin / com / stevesoft / pat / CustomEndpoint.js
1 Clazz.declarePackage ("com.stevesoft.pat");\r
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.CustomEndpoint", null, function () {\r
3 c$ = Clazz.decorateAsClass (function () {\r
4 this.c = null;\r
5 Clazz.instantialize (this, arguments);\r
6 }, com.stevesoft.pat, "CustomEndpoint", com.stevesoft.pat.Pattern);\r
7 Clazz.makeConstructor (c$, \r
8 function (cm) {\r
9 Clazz.superConstructor (this, com.stevesoft.pat.CustomEndpoint, []);\r
10 this.c = cm;\r
11 }, "com.stevesoft.pat.Custom");\r
12 Clazz.overrideMethod (c$, "matchInternal", \r
13 function (pos, pt) {\r
14 var npos = this.c.v.validate (pt.src, this.c.start, pos);\r
15 if (npos >= 0) {\r
16 return this.nextMatch (npos, pt);\r
17 }return -1;\r
18 }, "~N,com.stevesoft.pat.Pthings");\r
19 Clazz.overrideMethod (c$, "toString", \r
20 function () {\r
21 return "";\r
22 });\r
23 Clazz.overrideMethod (c$, "clone1", \r
24 function (h) {\r
25 return  new com.stevesoft.pat.CustomEndpoint (this.c.clone (h));\r
26 }, "java.util.Hashtable");\r
27 });\r