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