X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2FTransPat.java;fp=src%2Fcom%2Fstevesoft%2Fpat%2FTransPat.java;h=27c1fb23df7f5cdce1c4e48371611f92add724f7;hb=c40cf903f740a72ab63dd1abc10fa33450ce660d;hp=0000000000000000000000000000000000000000;hpb=5bcae030b489e670c6983aa97eb9b6d8a6bbbbd5;p=jalview.git diff --git a/src/com/stevesoft/pat/TransPat.java b/src/com/stevesoft/pat/TransPat.java new file mode 100755 index 0000000..27c1fb2 --- /dev/null +++ b/src/com/stevesoft/pat/TransPat.java @@ -0,0 +1,40 @@ +// +// This software is now distributed according to +// the Lesser Gnu Public License. Please see +// http://www.gnu.org/copyleft/lesser.txt for +// the details. +// -- Happy Computing! +// +package com.stevesoft.pat; + +import java.util.*; + +/** This class is used to implement the Transformer + @see com.stevesoft.pat.Transform + */ +class TransPat extends Pattern { + Regex[] ra = new Regex[10]; + int ra_len = 0; + int pn = -1; + public String toString() { + return "(?#TransPat)"; + } + + TransPat() {} + + int lastMatchedTo = -1; + public int matchInternal(int pos,Pthings pt) { + for(int i=0;i= 0) { + pn = i; + return r; + } + } + pn = -1; + return -1; + } +}