Lines Matching refs:chars
25 final char [] chars = pattern.toCharArray (); // is this faster than using charAt()?
26 final int charsLength = chars.length;
37 final char ch = chars [c];
44 chars [patternLength ++] = '*';
51 chars [patternLength ++] = ch;
61 else if (chars [0] == '*')
62 return new EndsWithMatcher (chars, patternLength);
63 else if (chars [patternLength - 1] == '*')
64 return new StartsWithMatcher (chars, patternLength);
67 return new PatternMatcher (chars, patternLength);
72 public abstract boolean matches (char [] chars);
125 public final boolean matches (final char [] chars)
127 if (chars == null) throw new IllegalArgumentException ("null input: chars");
144 public final boolean matches (final char [] chars)
146 if (chars == null) throw new IllegalArgumentException ("null input: chars");
148 return chars.length == 0;
163 public final boolean matches (final char [] chars)
165 if (chars == null) throw new IllegalArgumentException ("null input: chars");
170 if (chars.length < prefixLength) return false;
174 if (chars [c] != prefixChars [c]) return false;
201 public final boolean matches (final char [] chars)
203 if (chars == null) throw new IllegalArgumentException ("null input: chars");
207 final int charsLength = chars.length;
213 if (chars [charsLength - 1 - c] != suffixChars [suffixLength - c]) return false;