ca.ucalgary.seahawk.services
Class IterativeMatchResult
java.lang.Object
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+))+
IterativeMatchResult
public IterativeMatchResult(MatchResult baseMatch,
Map<Integer,String[]> iterCaptureValues)
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
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010