Uses of Interface
org.jparsec.pattern.CharPredicate
Packages that use CharPredicate
Package
Description
Provides core Parser implementations for parser combinator logic.
Provides Pattern implementations for use by character level scanners.
-
Uses of CharPredicate in org.jparsec
Fields in org.jparsec declared as CharPredicateModifier and TypeFieldDescription(package private) static final CharPredicateIndentation.INLINE_WHITESPACEACharPredicatethat returns true only if the character isn't line feed andCharacter.isWhitespace(char)returns true.Methods in org.jparsec with parameters of type CharPredicateModifier and TypeMethodDescriptionScanners.isChar(CharPredicate predicate) A scanner that succeeds and consumes the current character if it satisfies the givenCharPredicate.Scanners.isChar(CharPredicate predicate, String name) Deprecated.Scanners.many(CharPredicate predicate) A scanner that scans greedily for 0 or more characters that satisfies the given CharPredicate.Scanners.many1(CharPredicate predicate) A scanner that scans greedily for 1 or more characters that satisfies the given CharPredicate. -
Uses of CharPredicate in org.jparsec.pattern
Fields in org.jparsec.pattern declared as CharPredicateModifier and TypeFieldDescriptionstatic final CharPredicateCharPredicates.ALWAYSACharPredicatethat always returns true.static final CharPredicateCharPredicates.IS_ALPHAACharPredicatethat returns true if the character is an alpha character.static final CharPredicateCharPredicates.IS_ALPHA_ACharPredicatethat returns true if it is an alpha character or the underscore character_.static final CharPredicateCharPredicates.IS_ALPHA_NUMERICACharPredicatethat returns true if it is an alphanumeric character, or an underscore character.static final CharPredicateCharPredicates.IS_ALPHA_NUMERIC_ACharPredicatethat returns true if it is an alphanumeric character, or an underscore character.static final CharPredicateCharPredicates.IS_DIGITACharPredicatethat returns true if the character is a digit.static final CharPredicateCharPredicates.IS_HEX_DIGITACharPredicatethat returns true if the character is a digit or within the range of[a-f]or[A-F].static final CharPredicateCharPredicates.IS_LETTERACharPredicatethat returns true ifCharacter.isLetter(char)returns true.static final CharPredicateCharPredicates.IS_LOWER_CASEACharPredicatethat returns true ifCharacter.isLowerCase(char)returns true.static final CharPredicateCharPredicates.IS_UPPER_CASEACharPredicatethat returns true ifCharacter.isUpperCase(char)returns true.static final CharPredicateCharPredicates.IS_WHITESPACEACharPredicatethat returns true ifCharacter.isWhitespace(char)returns true.static final CharPredicateCharPredicates.NEVERACharPredicatethat always returns false.private final CharPredicateRepeatCharPredicatePattern.predicateMethods in org.jparsec.pattern that return CharPredicateModifier and TypeMethodDescriptionstatic CharPredicateACharPredicatethat returns true if the character is equal to any character inchars.static CharPredicateCharPredicates.and(CharPredicate... predicates) static CharPredicateCharPredicates.and(CharPredicate predicate1, CharPredicate predicate2) static CharPredicateCharPredicates.isChar(char c) ACharPredicatethat returns true if the character is equal toc.static CharPredicateCharPredicates.not(CharPredicate predicate) ACharPredicatethat returns true ifpredicateevaluates to false.static CharPredicateACharPredicatethat returns true if the character is not equal to any character inchars.static CharPredicateCharPredicates.notChar(char c) ACharPredicatethat returns true if the character is not equal toc.static CharPredicateCharPredicates.notRange(char a, char b) ACharPredicatethat returns true if the character is not within the range of[a, b].static CharPredicateCharPredicates.or(CharPredicate... predicates) static CharPredicateCharPredicates.or(CharPredicate predicate1, CharPredicate predicate2) static CharPredicateCharPredicates.range(char a, char b) ACharPredicatethat returns true if the character is within the range of[a, b].Methods in org.jparsec.pattern with parameters of type CharPredicateModifier and TypeMethodDescriptionstatic CharPredicateCharPredicates.and(CharPredicate... predicates) static CharPredicateCharPredicates.and(CharPredicate predicate1, CharPredicate predicate2) static PatternPatterns.atLeast(int min, CharPredicate predicate) Returns aPatternobject that matches if the input starts withminor more characters and all satisfypredicate.static PatternPatterns.atMost(int max, CharPredicate predicate) static PatternPatterns.isChar(CharPredicate predicate) Returns aPatternobject that matches if the current character in the input satisfiespredicate, in which case1is returned as match length.static PatternPatterns.many(int min, CharPredicate predicate) Deprecated.UsePatterns.atLeast(int, CharPredicate)instead.static PatternPatterns.many(CharPredicate predicate) Returns aPatternthat matches 0 or more characters satisfyingpredicate.static PatternPatterns.many1(CharPredicate predicate) Returns aPatternthat matches 1 or more characters satisfyingpredicate.private static intPatterns.matchMany(CharPredicate predicate, CharSequence src, int len, int from, int acc) (package private) static intRepeatCharPredicatePattern.matchRepeat(int n, CharPredicate predicate, CharSequence src, int length, int begin, int acc) private static intPatterns.matchSome(int max, CharPredicate predicate, CharSequence src, int len, int from, int acc) static CharPredicateCharPredicates.not(CharPredicate predicate) ACharPredicatethat returns true ifpredicateevaluates to false.static CharPredicateCharPredicates.or(CharPredicate... predicates) static CharPredicateCharPredicates.or(CharPredicate predicate1, CharPredicate predicate2) static PatternPatterns.repeat(int n, CharPredicate predicate) Returns aPatternobject that matches if the input has at leastncharacters and the firstncharacters all satisfypredicate.static PatternPatterns.some(int min, int max, CharPredicate predicate) Deprecated.UsePatterns.times(int, int, CharPredicate)instead.static PatternPatterns.some(int max, CharPredicate predicate) Deprecated.UsePatterns.atMost(int, CharPredicate)instead.static PatternPatterns.times(int min, int max, CharPredicate predicate) Returns aPatternthat matches at leastminand up tomaxnumber of characters satisfyingpredicate,Constructors in org.jparsec.pattern with parameters of type CharPredicateModifierConstructorDescription(package private)RepeatCharPredicatePattern(int n, CharPredicate predicate)
Object.toString()in theCharPredicate, or usePatterns.isChar(predicate).toScanner(name).