Uses of Interface
org.jparsec.pattern.CharPredicate
-
Packages that use CharPredicate Package Description org.jparsec Provides core Parser implementations for parser combinator logic.org.jparsec.pattern Provides Pattern implementations for use by character level scanners. -
-
Uses of CharPredicate in org.jparsec
Fields in org.jparsec declared as CharPredicate Modifier and Type Field Description (package private) static 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 CharPredicate Modifier and Type Method Description static Parser<java.lang.Void>Scanners. isChar(CharPredicate predicate)A scanner that succeeds and consumes the current character if it satisfies the givenCharPredicate.static Parser<java.lang.Void>Scanners. isChar(CharPredicate predicate, java.lang.String name)Deprecated.ImplementObject.toString()in theCharPredicate, or usePatterns.isChar(predicate).toScanner(name).static Parser<java.lang.Void>Scanners. many(CharPredicate predicate)A scanner that scans greedily for 0 or more characters that satisfies the given CharPredicate.static Parser<java.lang.Void>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 CharPredicate Modifier and Type Field Description static CharPredicateCharPredicates. ALWAYSACharPredicatethat always returns true.static CharPredicateCharPredicates. IS_ALPHAACharPredicatethat returns true if the character is an alpha character.static CharPredicateCharPredicates. IS_ALPHA_ACharPredicatethat returns true if it is an alpha character or the underscore character_.static CharPredicateCharPredicates. IS_ALPHA_NUMERICACharPredicatethat returns true if it is an alphanumeric character, or an underscore character.static CharPredicateCharPredicates. IS_ALPHA_NUMERIC_ACharPredicatethat returns true if it is an alphanumeric character, or an underscore character.static CharPredicateCharPredicates. IS_DIGITACharPredicatethat returns true if the character is a digit.static CharPredicateCharPredicates. IS_HEX_DIGITACharPredicatethat returns true if the character is a digit or within the range of[a-f]or[A-F].static CharPredicateCharPredicates. IS_LETTERACharPredicatethat returns true ifCharacter.isLetter(char)returns true.static CharPredicateCharPredicates. IS_LOWER_CASEACharPredicatethat returns true ifCharacter.isLowerCase(char)returns true.static CharPredicateCharPredicates. IS_UPPER_CASEACharPredicatethat returns true ifCharacter.isUpperCase(char)returns true.static CharPredicateCharPredicates. IS_WHITESPACEACharPredicatethat returns true ifCharacter.isWhitespace(char)returns true.static CharPredicateCharPredicates. NEVERACharPredicatethat always returns false.private CharPredicateRepeatCharPredicatePattern. predicateMethods in org.jparsec.pattern that return CharPredicate Modifier and Type Method Description static CharPredicateCharPredicates. among(java.lang.String chars)ACharPredicatethat 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 CharPredicateCharPredicates. notAmong(java.lang.String chars)ACharPredicatethat 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 CharPredicate Modifier and Type Method Description static 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, java.lang.CharSequence src, int len, int from, int acc)(package private) static intRepeatCharPredicatePattern. matchRepeat(int n, CharPredicate predicate, java.lang.CharSequence src, int length, int begin, int acc)private static intPatterns. matchSome(int max, CharPredicate predicate, java.lang.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 CharPredicate Constructor Description RepeatCharPredicatePattern(int n, CharPredicate predicate)
-