org.cojen.util
Class PatternMatcher.Result
java.lang.Object
org.cojen.util.PatternMatcher.Result
- Enclosing class:
- PatternMatcher
public static class PatternMatcher.Result
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPattern
public String getPattern()
getValue
public Object 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-2011 Brian S O'Neill. All Rights Reserved.