Version: 1.1.1

ca.ucalgary.seahawk.services
Class IterativeMatchResult

java.lang.Object
  extended by ca.ucalgary.seahawk.services.IterativeMatchResult
All Implemented Interfaces:
MatchResult

public class IterativeMatchResult
extends Object
implements MatchResult

A utility class used by MobyComplexBuilder to "trick" rule evaluation into seeing specific individual instances of quantified regex capture groups, e.g. By calling setIteration() we can get the first, second, etc. value of $1 captured by (\S+(\s+))+


Constructor Summary
IterativeMatchResult(MatchResult baseMatch, Map<Integer,String[]> iterCaptureValues)
           
 
Method Summary
 int end()
           
 int end(int group)
           
 int getIteration()
           
 int getNumIterations()
           
 String group()
           
 String group(int group)
           
 int groupCount()
           
 void setIteration(int i)
           
 int start()
           
 int start(int group)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterativeMatchResult

public IterativeMatchResult(MatchResult baseMatch,
                            Map<Integer,String[]> iterCaptureValues)
Method Detail

getNumIterations

public int getNumIterations()

setIteration

public void setIteration(int i)
                  throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

getIteration

public int getIteration()

end

public int end()
Specified by:
end in interface MatchResult

end

public int end(int group)
Specified by:
end in interface MatchResult

group

public String group()
Specified by:
group in interface MatchResult

group

public String group(int group)
Specified by:
group in interface MatchResult

groupCount

public int groupCount()
Specified by:
groupCount in interface MatchResult

start

public int start()
Specified by:
start in interface MatchResult

start

public int start(int group)
Specified by:
start in interface MatchResult

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010