JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / com / stevesoft / pat / Any.js
1 Clazz.declarePackage ("com.stevesoft.pat");
2 Clazz.load (["com.stevesoft.pat.Pattern"], "com.stevesoft.pat.Any", ["com.stevesoft.pat.patInt"], function () {
3 c$ = Clazz.declareType (com.stevesoft.pat, "Any", com.stevesoft.pat.Pattern);
4 Clazz.overrideMethod (c$, "matchInternal", 
5 function (pos, pt) {
6 if (pos < pt.src.length ()) {
7 if (pt.dotDoesntMatchCR) {
8 if (pt.src.charAt (pos) != '\n') {
9 return this.nextMatch (pos + 1, pt);
10 }} else {
11 return this.nextMatch (pos + 1, pt);
12 }}return -1;
13 }, "~N,com.stevesoft.pat.Pthings");
14 Clazz.overrideMethod (c$, "toString", 
15 function () {
16 return "." + this.nextString ();
17 });
18 Clazz.overrideMethod (c$, "minChars", 
19 function () {
20 return  new com.stevesoft.pat.patInt (1);
21 });
22 Clazz.overrideMethod (c$, "maxChars", 
23 function () {
24 return  new com.stevesoft.pat.patInt (1);
25 });
26 Clazz.overrideMethod (c$, "clone1", 
27 function (h) {
28 return  new com.stevesoft.pat.Any ();
29 }, "java.util.Hashtable");
30 });