private static class CharMatcher.And extends CharMatcher
CharMatcher.FastMatcher, CharMatcher.NegatedFastMatcher| Modifier and Type | Field and Description |
|---|---|
(package private) CharMatcher |
first |
(package private) CharMatcher |
second |
ANY, ASCII, BREAKING_WHITESPACE, description, DIGIT, INVISIBLE, JAVA_DIGIT, JAVA_ISO_CONTROL, JAVA_LETTER, JAVA_LETTER_OR_DIGIT, JAVA_LOWER_CASE, JAVA_UPPER_CASE, NONE, SINGLE_WIDTH, WHITESPACE, WHITESPACE_MULTIPLIER, WHITESPACE_SHIFT, WHITESPACE_TABLE| Constructor and Description |
|---|
And(CharMatcher a,
CharMatcher b) |
And(CharMatcher a,
CharMatcher b,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(char c)
Determines a true or false value for the given character.
|
(package private) void |
setBits(java.util.BitSet table)
Sets bits in
table matched by this matcher. |
(package private) CharMatcher |
withToString(java.lang.String description)
Subclasses should provide a new CharMatcher with the same characteristics as
this,
but with their toString method overridden with the new description. |
and, anyOf, apply, collapseFrom, countIn, forPredicate, indexIn, indexIn, inRange, inRange, is, isNot, lastIndexIn, matchesAllOf, matchesAnyOf, matchesNoneOf, negate, noneOf, or, precomputed, precomputedInternal, removeFrom, replaceFrom, replaceFrom, retainFrom, toString, trimAndCollapseFrom, trimFrom, trimLeadingFrom, trimTrailingFromfinal CharMatcher first
final CharMatcher second
And(CharMatcher a, CharMatcher b)
And(CharMatcher a, CharMatcher b, java.lang.String description)
public boolean matches(char c)
CharMatchermatches in class CharMatcher@GwtIncompatible(value="java.util.BitSet") void setBits(java.util.BitSet table)
CharMatchertable matched by this matcher.setBits in class CharMatcherCharMatcher withToString(java.lang.String description)
CharMatcherthis,
but with their toString method overridden with the new description.
This is unsupported by default.
withToString in class CharMatcher