|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.parsec.pattern.CharPredicates
public final class CharPredicates
This class provides some common CharPredicate implementations.
Constructor Summary | |
---|---|
CharPredicates()
|
Method Summary | |
---|---|
static CharPredicate |
always()
A predicate that always returns true. |
static CharPredicate |
among(char[] chars)
among chars. |
static CharPredicate |
and(CharPredicate... cps)
Logical and of an array of CharPredicate objects. |
static CharPredicate |
and(CharPredicate cp1,
CharPredicate cp2)
Logical and of two CharPredicate objects. |
static CharPredicate |
isAlpha_()
[a-zA-Z_]. |
static CharPredicate |
isAlpha()
[a-zA-Z]. |
static CharPredicate |
isAlphaNumeric()
[a-zA-Z0-9_] |
static CharPredicate |
isChar(char a)
== a. |
static CharPredicate |
isDigit()
between 0 and 9. |
static CharPredicate |
isHexDigit()
is hex digit. |
static CharPredicate |
isLetter()
is letter. |
static CharPredicate |
isLowercase()
[a-z]. |
static CharPredicate |
isUppercase()
[A-Z]. |
static CharPredicate |
isWhitespace()
is white space. |
static CharPredicate |
never()
A predicate that always returns false. |
static CharPredicate |
not(CharPredicate cp)
Negate a CharPredicate object. |
static CharPredicate |
notAmong(char[] chars)
not among chars. |
static CharPredicate |
notChar(char a)
!= a. |
static CharPredicate |
notRange(char a,
char b)
not between a and b inclusive. |
static CharPredicate |
or(CharPredicate... cps)
Logical or of an array of CharPredicate objects. |
static CharPredicate |
or(CharPredicate cp1,
CharPredicate cp2)
Logical or of two CharPredicate objects. |
static CharPredicate |
range(char a,
char b)
between a and b inclusive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharPredicates()
Method Detail |
---|
public static CharPredicate isChar(char a)
public static CharPredicate notChar(char a)
public static CharPredicate range(char a, char b)
public static CharPredicate isDigit()
public static CharPredicate notRange(char a, char b)
public static CharPredicate among(char[] chars)
public static CharPredicate notAmong(char[] chars)
public static CharPredicate isHexDigit()
public static CharPredicate isUppercase()
public static CharPredicate isLowercase()
public static CharPredicate isWhitespace()
public static CharPredicate isAlpha()
public static CharPredicate isAlpha_()
public static CharPredicate isLetter()
public static CharPredicate isAlphaNumeric()
public static CharPredicate not(CharPredicate cp)
public static CharPredicate and(CharPredicate cp1, CharPredicate cp2)
public static CharPredicate or(CharPredicate cp1, CharPredicate cp2)
public static CharPredicate and(CharPredicate... cps)
public static CharPredicate or(CharPredicate... cps)
public static CharPredicate never()
public static CharPredicate always()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |