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