org.hawk.pattern
Class PatternMatcher

java.lang.Object
  extended by org.hawk.pattern.PatternMatcher

public class PatternMatcher
extends java.lang.Object

This is generic pattern matcher. It returns a map containing key value pair as integer and the matcher's grouping value at that group no respectively.


Constructor Summary
PatternMatcher()
           
 
Method Summary
static java.util.Map<java.lang.Integer,java.lang.String> match(java.util.regex.Pattern pattern, java.lang.String input)
          This returns a map containing key value pair as integer and the matcher's grouping value at that group no respectively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternMatcher

public PatternMatcher()
Method Detail

match

public static java.util.Map<java.lang.Integer,java.lang.String> match(java.util.regex.Pattern pattern,
                                                                      java.lang.String input)
This returns a map containing key value pair as integer and the matcher's grouping value at that group no respectively.

Parameters:
pattern - input RegEx Pattern.
input - input string to be parsed.
Returns:
returns a map containing key value pair as integer and the matcher's grouping value at that group no respectively.