org.cojen.util
Class PatternMatcher.Result<V>

java.lang.Object
  extended by org.cojen.util.PatternMatcher.Result<V>
Enclosing class:
PatternMatcher<V>

public static class PatternMatcher.Result<V>
extends Object


Method Summary
 String getPattern()
           
 V getValue()
          Returns the value associated with the matched pattern.
 int[] getWildcardPositions()
          Returns the indexes used to parse the lookup string at wildcard positions in order for it to match the pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPattern

public String getPattern()

getValue

public V getValue()
Returns the value associated with the matched pattern.


getWildcardPositions

public int[] getWildcardPositions()
Returns the indexes used to parse the lookup string at wildcard positions in order for it to match the pattern. Array length is always double the number of wildcards in the pattern. Every even element is the start index (inclusive) of a wildcard match, and every odd element is the end index (exclusive) of a wildcard match.



Copyright © 2004-2008 Brian S O'Neill. All Rights Reserved.