X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fcom%2Fstevesoft%2Fpat%2FOr.js;h=9255825171876aafbf22cc0f1148334f462d5a55;hp=1ca267120c13e01a484fb9226e41266f34a9718c;hb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/com/stevesoft/pat/Or.js b/bin/com/stevesoft/pat/Or.js index 1ca2671..9255825 100644 --- a/bin/com/stevesoft/pat/Or.js +++ b/bin/com/stevesoft/pat/Or.js @@ -1,92 +1,92 @@ -Clazz.declarePackage ("com.stevesoft.pat"); -Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Or", ["com.stevesoft.pat.patInt", "java.lang.StringBuffer", "java.util.Vector"], function () { -c$ = Clazz.decorateAsClass (function () { -this.v = null; -this.pv = null; -Clazz.instantialize (this, arguments); -}, com.stevesoft.pat, "Or", com.stevesoft.pat.Pattern); -Clazz.makeConstructor (c$, -function () { -Clazz.superConstructor (this, com.stevesoft.pat.Or, []); -this.v = new java.util.Vector (); -}); -Clazz.defineMethod (c$, "leftForm", -function () { -return "(?:"; -}); -Clazz.defineMethod (c$, "rightForm", -function () { -return ")"; -}); -Clazz.defineMethod (c$, "sepForm", -function () { -return "|"; -}); -Clazz.defineMethod (c$, "addOr", -function (p) { -this.pv = null; -this.v.addElement (p); -p.setParent (this); -return this; -}, "com.stevesoft.pat.Pattern"); -Clazz.defineMethod (c$, "toString", -function () { -var i; -var sb = new StringBuffer (); -sb.append (this.leftForm ()); -if (this.v.size () > 0) { -sb.append ((this.v.elementAt (0)).toString ()); -}for (i = 1; i < this.v.size (); i++) { -sb.append (this.sepForm ()); -sb.append ((this.v.elementAt (i)).toString ()); -} -sb.append (this.rightForm ()); -sb.append (this.nextString ()); -return sb.toString (); -}); -Clazz.defineMethod (c$, "matchInternal", -function (pos, pt) { -if (this.pv == null) { -this.pv = new Array (this.v.size ()); -this.v.copyInto (this.pv); -}for (var i = 0; i < this.v.size (); i++) { -var p = this.pv[i]; -var r = p.matchInternal (pos, pt); -if (r >= 0) { -return r; -}} -return -1; -}, "~N,com.stevesoft.pat.Pthings"); -Clazz.overrideMethod (c$, "minChars", -function () { -if (this.v.size () == 0) { -return new com.stevesoft.pat.patInt (0); -}var m = (this.v.elementAt (0)).countMinChars (); -for (var i = 1; i < this.v.size (); i++) { -var p = this.v.elementAt (i); -m.mineq (p.countMinChars ()); -} -return m; -}); -Clazz.overrideMethod (c$, "maxChars", -function () { -if (this.v.size () == 0) { -return new com.stevesoft.pat.patInt (0); -}var m = (this.v.elementAt (0)).countMaxChars (); -for (var i = 1; i < this.v.size (); i++) { -var p = this.v.elementAt (i); -m.maxeq (p.countMaxChars ()); -} -return m; -}); -Clazz.overrideMethod (c$, "clone1", -function (h) { -var o = new com.stevesoft.pat.Or (); -h.put (this, o); -h.put (o, o); -for (var i = 0; i < this.v.size (); i++) { -o.v.addElement ((this.v.elementAt (i)).clone (h)); -} -return o; -}, "java.util.Hashtable"); -}); +Clazz.declarePackage ("com.stevesoft.pat"); +Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Or", ["com.stevesoft.pat.patInt", "java.lang.StringBuffer", "java.util.Vector"], function () { +c$ = Clazz.decorateAsClass (function () { +this.v = null; +this.pv = null; +Clazz.instantialize (this, arguments); +}, com.stevesoft.pat, "Or", com.stevesoft.pat.Pattern); +Clazz.makeConstructor (c$, +function () { +Clazz.superConstructor (this, com.stevesoft.pat.Or, []); +this.v = new java.util.Vector (); +}); +Clazz.defineMethod (c$, "leftForm", +function () { +return "(?:"; +}); +Clazz.defineMethod (c$, "rightForm", +function () { +return ")"; +}); +Clazz.defineMethod (c$, "sepForm", +function () { +return "|"; +}); +Clazz.defineMethod (c$, "addOr", +function (p) { +this.pv = null; +this.v.addElement (p); +p.setParent (this); +return this; +}, "com.stevesoft.pat.Pattern"); +Clazz.defineMethod (c$, "toString", +function () { +var i; +var sb = new StringBuffer (); +sb.append (this.leftForm ()); +if (this.v.size () > 0) { +sb.append ((this.v.elementAt (0)).toString ()); +}for (i = 1; i < this.v.size (); i++) { +sb.append (this.sepForm ()); +sb.append ((this.v.elementAt (i)).toString ()); +} +sb.append (this.rightForm ()); +sb.append (this.nextString ()); +return sb.toString (); +}); +Clazz.defineMethod (c$, "matchInternal", +function (pos, pt) { +if (this.pv == null) { +this.pv = new Array (this.v.size ()); +this.v.copyInto (this.pv); +}for (var i = 0; i < this.v.size (); i++) { +var p = this.pv[i]; +var r = p.matchInternal (pos, pt); +if (r >= 0) { +return r; +}} +return -1; +}, "~N,com.stevesoft.pat.Pthings"); +Clazz.overrideMethod (c$, "minChars", +function () { +if (this.v.size () == 0) { +return new com.stevesoft.pat.patInt (0); +}var m = (this.v.elementAt (0)).countMinChars (); +for (var i = 1; i < this.v.size (); i++) { +var p = this.v.elementAt (i); +m.mineq (p.countMinChars ()); +} +return m; +}); +Clazz.overrideMethod (c$, "maxChars", +function () { +if (this.v.size () == 0) { +return new com.stevesoft.pat.patInt (0); +}var m = (this.v.elementAt (0)).countMaxChars (); +for (var i = 1; i < this.v.size (); i++) { +var p = this.v.elementAt (i); +m.maxeq (p.countMaxChars ()); +} +return m; +}); +Clazz.overrideMethod (c$, "clone1", +function (h) { +var o = new com.stevesoft.pat.Or (); +h.put (this, o); +h.put (o, o); +for (var i = 0; i < this.v.size (); i++) { +o.v.addElement ((this.v.elementAt (i)).clone (h)); +} +return o; +}, "java.util.Hashtable"); +});