Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W 

A

a - Variable in class org.jparsec.functors.Pair
Deprecated.
 
always() - Static method in class org.jparsec.Parsers
Parser that always succeeds.
ALWAYS - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that always returns true.
ALWAYS - Static variable in class org.jparsec.pattern.Patterns
A Pattern that always matches with match length 0.
among(String) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is equal to any character in chars.
among(String) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the current character in the input is equal to any character in chars, in which case 1 is returned as match length.
among(String, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use Patterns.among(chars).toScanner(name).
among(String) - Static method in class org.jparsec.Scanners
A scanner that succeeds and consumes the current character if it equals to any character in chars.
and(CharPredicate, CharPredicate) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if both predicate1 and predicate2 evaluates to true.
and(CharPredicate...) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if all CharPredicate in predicates evaluate to true.
and(Pattern...) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that matches if all of patterns matches, in which case, the maximum match length is returned.
ANY_CHAR - Static variable in class org.jparsec.pattern.Patterns
A Pattern that matches any character and only mismatches for an empty string.
ANY_CHAR - Static variable in class org.jparsec.Scanners
Matches any character in the input.
ANY_TOKEN - Static variable in class org.jparsec.Parsers
A Parser that consumes a token.
apply(From) - Method in interface org.jparsec.functors.Map
Deprecated.
 
apply(A, B) - Method in interface org.jparsec.functors.Map2
Deprecated.
 
array(Parser<?>...) - Static method in class org.jparsec.Parsers
A Parser that sequentially runs parsers one by one and collects the return values in an array.
asOptional() - Method in class org.jparsec.Parser
p.asOptional() is equivalent to p? in EBNF.
atLeast(int) - Method in class org.jparsec.Parser
A Parser that runs this parser greedily for at least min times.
atLeast(int) - Method in class org.jparsec.pattern.Pattern
Returns Pattern object that matches this pattern for at least min times.
atLeast(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the input starts with min or more characters and all satisfy predicate.
atMost(int) - Method in class org.jparsec.pattern.Pattern
Returns Pattern object that matches this pattern for up to max times.
atMost(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that matches up to max number of characters satisfying predicate.
atomic() - Method in class org.jparsec.Parser
A Parser that undoes any partial match if this fails.

B

b - Variable in class org.jparsec.functors.Pair
Deprecated.
 
between(Parser<?>, Parser<?>) - Method in class org.jparsec.Parser
A Parser that runs this between before and after.
between(Parser<?>, Parser<T>, Parser<?>) - Static method in class org.jparsec.Parsers
Binary<T> - Interface in org.jparsec.functors
Deprecated.
Use BinaryOperator instead.
blockComment(String, String) - Static method in class org.jparsec.Scanners
A scanner for non-nested block comment that starts with begin and ends with end.
blockComment(String, String, Pattern) - Static method in class org.jparsec.Scanners
A scanner for a non-nestable block comment that starts with begin and ends with end.
blockComment(Parser<Void>, Parser<Void>, Parser<?>) - Static method in class org.jparsec.Scanners
A scanner for a non-nestable block comment that starts with begin and ends with end.
build(Parser<? extends T>) - Method in class org.jparsec.OperatorTable
Builds a Parser based on information in this OperatorTable.
build() - Method in class org.jparsec.Terminals.Builder
Builds a new Terminals instance that recognizes words defined in this builder.

C

c - Variable in class org.jparsec.functors.Tuple3
Deprecated.
 
caseInsensitive(String[], String[]) - Static method in class org.jparsec.Terminals
Deprecated.
Use operators(ops) .words(Scanners.IDENTIFIER) .caseInsensitiveKeywords(keywords) .build() instead.
caseInsensitive(Parser<String>, String[], String[]) - Static method in class org.jparsec.Terminals
Deprecated.
Use operators(ops) .words(wordScanner) .caseInsensitiveKeywords(keywords) .build() instead.
caseInsensitive(Parser<String>, String[], String[], Function<String, ?>) - Static method in class org.jparsec.Terminals
Deprecated.
Use operators(ops) .words(wordScanner) .tokenizeWordsWith(wordMap) .caseInsensitiveKeywords(keywords) .build() instead.
caseInsensitiveKeywords(String...) - Method in class org.jparsec.Terminals.Builder
Defines case insensitive keywords.
caseInsensitiveKeywords(Collection<String>) - Method in class org.jparsec.Terminals.Builder
Defines case insensitive keywords.
caseSensitive(String[], String[]) - Static method in class org.jparsec.Terminals
Deprecated.
Use operators(ops) .words(Scanners.IDENTIFIER) .keywords(keywords) .build() instead.
caseSensitive(Parser<String>, String[], String[]) - Static method in class org.jparsec.Terminals
Deprecated.
Use operators(ops) .words(wordScanner) .keywords(keywords) .build() instead.
caseSensitive(Parser<String>, String[], String[], Function<String, ?>) - Static method in class org.jparsec.Terminals
Deprecated.
Use operators(ops) .words(wordScanner) .tokenizeWordsWith(wordMap) .keywords(keywords) .build() instead.
cast() - Method in class org.jparsec.Parser
Casts this to a Parser of type R.
CharPredicate - Interface in org.jparsec.pattern
Evaluates a char to a boolean.
CharPredicates - Class in org.jparsec.pattern
Provides common CharPredicate implementations.
column - Variable in class org.jparsec.error.Location
Deprecated.
1-based column number.
constant(T) - Static method in class org.jparsec.functors.Maps
Deprecated.
Use from -> to directly.
constant(T) - Static method in class org.jparsec.Parsers
A Parser that always returns v regardless of input.

D

d - Variable in class org.jparsec.functors.Tuple4
Deprecated.
 
DEC_INTEGER - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches a decimal integer, which starts with a non-zero digit and is followed by 0 or more digits.
DEC_INTEGER - Static variable in class org.jparsec.Scanners
Scanner for a decimal number.
DEC_TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
A tokenizer that parses a decimal integer number (valid patterns are: 1, 10, 123), and converts the string to a Long value.
DECIMAL - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches a decimal number that could start with a decimal point or a digit.
DECIMAL - Static variable in class org.jparsec.Scanners
Scanner for a decimal number.
decimalLiteral(String) - Static method in class org.jparsec.Tokens
Returns a Tokens.Fragment tagged as Tokens.Tag.DECIMAL.
DOUBLE_QUOTE_STRING - Static variable in class org.jparsec.Scanners
Scanner with a pattern for double quoted string literal.
DOUBLE_QUOTE_TOKENIZER - Static variable in class org.jparsec.Terminals.StringLiteral
A tokenizer that parses double quoted string literal (escaped by '\'), and transforms the quoted content by applying escape characters.

E

e - Variable in class org.jparsec.functors.Tuple5
Deprecated.
 
endBy(Parser<?>) - Method in class org.jparsec.Parser
A Parser that runs this for 0 or more times delimited and terminated by delim.
endBy1(Parser<?>) - Method in class org.jparsec.Parser
A Parser that runs this for 1 or more times delimited and terminated by delim.
EOF - Static variable in class org.jparsec.Parsers
Parser that succeeds only if EOF is met.
EOF - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches if the input has no character left.
equals(Object) - Method in class org.jparsec.error.Location
Deprecated.
 
equals(Object) - Method in class org.jparsec.functors.Pair
Deprecated.
 
equals(Object) - Method in class org.jparsec.functors.Tuple3
Deprecated.
 
equals(Object) - Method in class org.jparsec.functors.Tuple4
Deprecated.
 
equals(Object) - Method in class org.jparsec.functors.Tuple5
Deprecated.
 
equals(Object) - Method in class org.jparsec.Token
 
equals(Object) - Method in class org.jparsec.Tokens.Fragment
 
equals(Object) - Method in class org.jparsec.Tokens.ScientificNotation
 
equals(Object) - Method in class org.jparsec.WithSource
 
ESCAPED - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that succeeds with match length 2 if there are at least 2 characters in the input and the first character is '\'.
expect(String) - Static method in class org.jparsec.Parsers
A Parser that fails and reports that name is logically expected.
exponent - Variable in class org.jparsec.Tokens.ScientificNotation
The exponent after the "E".

F

fail(String) - Static method in class org.jparsec.Parsers
A Parser that always fails with message.
fails() - Method in class org.jparsec.Parser
A Parser that returns true if this fails, false otherwise.
followedBy(Parser<?>) - Method in class org.jparsec.Parser
A Parser that sequentially executes this and then parser, whose return value is ignored.
FRACTION - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches a decimal point and one or more digits after it.
fragment(Object...) - Static method in class org.jparsec.Terminals
Returns a Parser that recognizes Tokens.Fragment token values tagged with one of tags.
fragment(String, Object) - Static method in class org.jparsec.Tokens
Returns a Tokens.Fragment tagged with tag.
Fragment(String, Object) - Constructor for class org.jparsec.Tokens.Fragment
Deprecated.
Use Tokens.fragment() instead.
from(Parser<? extends Collection<Token>>) - Method in class org.jparsec.Parser
A Parser that takes as input the Token collection returned by lexer, and runs this to parse the tokens.
from(Parser<?>, Parser<Void>) - Method in class org.jparsec.Parser
A Parser that takes as input the tokens returned by tokenizer delimited by delim, and runs this to parse the tokens.

G

getBeginIndex() - Method in class org.jparsec.ParseTree
Returns the index in source where this node starts.
getChildren() - Method in class org.jparsec.ParseTree
Returns the immutable list of child nodes that correspond to labeled parsers syntactically enclosed inside parent parser.
getColumn() - Method in exception org.jparsec.error.ParserException
Returns the column where the error occurred.
getColumn() - Method in class org.jparsec.SourceLocation
Returns the column number of this location.
getEncountered() - Method in interface org.jparsec.error.ParseErrorDetails
Returns the physical input encountered when the error happened.
getEndIndex() - Method in class org.jparsec.ParseTree
Returns the index in source where this node ends.
getErrorDetails() - Method in exception org.jparsec.error.ParserException
Returns the detailed description of the error, or null if none.
getExpected() - Method in interface org.jparsec.error.ParseErrorDetails
Returns all that are logically expected.
getFailureMessage() - Method in interface org.jparsec.error.ParseErrorDetails
Returns the error message incurred by Parsers.fail(String), or null if none.
getIndex() - Method in interface org.jparsec.error.ParseErrorDetails
Returns the 0-based index in the source where the error happened.
getIndex() - Method in class org.jparsec.SourceLocation
Returns the 0-based index within the source.
getLine() - Method in exception org.jparsec.error.ParserException
Returns the line where the error occurred.
getLine() - Method in class org.jparsec.SourceLocation
Returns the line number of this location.
getLocation() - Method in exception org.jparsec.error.ParserException
getModuleName() - Method in exception org.jparsec.error.ParserException
Deprecated.
getName() - Method in class org.jparsec.ParseTree
Returns the node name, which is specified in Parser.label(java.lang.String).
getParseTree() - Method in exception org.jparsec.error.ParserException
Returns the parse tree until the parse error happened, when parseTree() was invoked.
getSource() - Method in class org.jparsec.WithSource
Returns the underlying source text.
getUnexpected() - Method in interface org.jparsec.error.ParseErrorDetails
Returns what is logically unexpected, or null if none.
getValue() - Method in class org.jparsec.ParseTree
Returns the parsed value of this node, or null if it's a failed node.
getValue() - Method in class org.jparsec.WithSource
Returns the parsed result.

H

hasAtLeast(int) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the input has at least n characters left.
hasExact(int) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the input has exactly n characters left.
hashCode() - Method in class org.jparsec.error.Location
Deprecated.
 
hashCode() - Method in class org.jparsec.functors.Pair
Deprecated.
 
hashCode() - Method in class org.jparsec.functors.Tuple3
Deprecated.
 
hashCode() - Method in class org.jparsec.functors.Tuple4
Deprecated.
 
hashCode() - Method in class org.jparsec.functors.Tuple5
Deprecated.
 
hashCode() - Method in class org.jparsec.Token
 
hashCode() - Method in class org.jparsec.Tokens.Fragment
 
hashCode() - Method in class org.jparsec.Tokens.ScientificNotation
 
hashCode() - Method in class org.jparsec.WithSource
 
HASKELL_BLOCK_COMMENT - Static variable in class org.jparsec.Scanners
Scanner for haskell style block comment.
HASKELL_DELIMITER - Static variable in class org.jparsec.Scanners
Scanner for the haskell style delimiter of tokens.
HASKELL_LINE_COMMENT - Static variable in class org.jparsec.Scanners
Scanner for haskell style line comment.
HEX_INTEGER - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches a hex integer, which starts with a 0x or 0X, and is followed by one or more hex digits.
HEX_INTEGER - Static variable in class org.jparsec.Scanners
Scanner for a hexadecimal number.
HEX_TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
A tokenizer that parses a hex integer number (valid patterns are: 0x1, 0Xff, 0xFe1 etc.), and converts the string to a Long value.

I

IDENTIFIER - Static variable in class org.jparsec.Scanners
Scanner for a regular identifier, that starts with either an underscore or an alpha character, followed by 0 or more alphanumeric characters.
identifier() - Static method in class org.jparsec.Terminals
Returns a Parser that recognizes identifiers (a.k.a words, variable names etc).
identifier(String) - Static method in class org.jparsec.Tokens
identity() - Static method in class org.jparsec.functors.Maps
Deprecated.
Use Function.identity() instead.
ifelse(Parser<? extends R>, Parser<? extends R>) - Method in class org.jparsec.Parser
A Parser that runs consequence if this succeeds, or alternative otherwise.
ifelse(Function<? super T, ? extends Parser<? extends R>>, Parser<? extends R>) - Method in class org.jparsec.Parser
A Parser that runs consequence if this succeeds, or alternative otherwise.
ifelse(Pattern, Pattern) - Method in class org.jparsec.pattern.Pattern
Returns Pattern object that, if this pattern matches, matches the remaining input against consequence pattern, or otherwise matches against alternative pattern.
indent() - Method in class org.jparsec.Indentation
A Parser that recognizes the generated indent token.
Indentation - Class in org.jparsec
Processes indentation based lexical structure according to the Off-side rule.
Indentation(Object, Object) - Constructor for class org.jparsec.Indentation
Creates an Indentation object that uses indent and outdent as the token values for indentation and outdentation.
Indentation() - Constructor for class org.jparsec.Indentation
Creates a Indentation object that generates default indent and outdent tokens.
INDEX - Static variable in class org.jparsec.Parsers
Deprecated.
index() - Method in class org.jparsec.Token
Returns the index of the token in the original source.
infixl(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
Adds an infix left-associative binary operator.
infixl(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>) - Method in class org.jparsec.Parser
A Parser for left-associative infix operator.
infixn(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
Adds an infix non-associative binary operator.
infixn(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>) - Method in class org.jparsec.Parser
A Parser that parses non-associative infix operator.
infixr(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
Adds an infix right-associative binary operator.
infixr(Parser<? extends BiFunction<? super T, ? super T, ? extends T>>) - Method in class org.jparsec.Parser
A Parser for right-associative infix operator.
INTEGER - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches an integer.
INTEGER - Static variable in class org.jparsec.Scanners
Scanner for an integer.
integerLiteral(String) - Static method in class org.jparsec.Tokens
Returns a Tokens.Fragment tagged as Tokens.Tag.INTEGER.
IS_ALPHA - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is an alpha character.
IS_ALPHA_ - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if it is an alpha character or the underscore character _.
IS_ALPHA_NUMERIC - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if it is an alphanumeric character, or an underscore character.
IS_ALPHA_NUMERIC_ - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if it is an alphanumeric character, or an underscore character.
IS_DIGIT - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is a digit.
IS_HEX_DIGIT - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is a digit or within the range of [a-f] or [A-F].
IS_LETTER - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if Character.isLetter(char) returns true.
IS_LOWER_CASE - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if Character.isLowerCase(char) returns true.
IS_UPPER_CASE - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if Character.isUpperCase(char) returns true.
IS_WHITESPACE - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if Character.isWhitespace(char) returns true.
isChar(char) - Method in interface org.jparsec.pattern.CharPredicate
Tests whether c satisfies the predicate.
isChar(char) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is equal to c.
isChar(char) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the current character in the input is equal to character c, in which case 1 is returned as match length.
isChar(CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the current character in the input satisfies predicate, in which case 1 is returned as match length.
isChar(CharPredicate) - Static method in class org.jparsec.Scanners
A scanner that succeeds and consumes the current character if it satisfies the given CharPredicate.
isChar(CharPredicate, String) - Static method in class org.jparsec.Scanners
Deprecated.
Implement Object.toString() in the CharPredicate, or use Patterns.isChar(predicate).toScanner(name).
isChar(char, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use Scanners.isChar(char) instead or use Patterns.isChar(ch).toScanner(name).
isChar(char) - Static method in class org.jparsec.Scanners
A scanner that succeeds and consumes the current character if it is equal to ch.

J

JAVA_BLOCK_COMMENT - Static variable in class org.jparsec.Scanners
Scanner for c++/java style block comment.
JAVA_DELIMITER - Static variable in class org.jparsec.Scanners
Scanner for the c++/java style delimiter of tokens.
JAVA_LINE_COMMENT - Static variable in class org.jparsec.Scanners
Scanner for c++/java style line comment.

K

keywords(String...) - Method in class org.jparsec.Terminals.Builder
Defines keywords.
keywords(Collection<String>) - Method in class org.jparsec.Terminals.Builder
Defines keywords.

L

label(String) - Method in class org.jparsec.Parser
A Parser that reports reports an error about name expected, if this fails with no partial match.
lazy() - Method in class org.jparsec.Parser.Reference
A Parser that delegates to the parser object referenced by this during parsing time.
length() - Method in class org.jparsec.Token
Returns the length of the token.
lexer(Parser<?>, Parser<?>) - Method in class org.jparsec.Indentation
A Parser that greedily runs tokenizer, and translates line feed characters ('\n') to indent and outdent tokens.
lexer(Parser<?>) - Method in class org.jparsec.Parser
A Parser that greedily runs this repeatedly, and ignores the pattern recognized by delim before and after each occurrence.
line - Variable in class org.jparsec.error.Location
Deprecated.
1-based line number.
lineComment(String) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches a line comment started by begin and ended by EOF or LF (the line feed character).
lineComment(String) - Static method in class org.jparsec.Scanners
A scanner that succeeds and consumes all the characters until the '\n' character if the current input starts with the string literal begin.
list(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
A Parser that sequentially runs parsers one by one and collects the return values in a List.
Location - Class in org.jparsec.error
Deprecated.
Prefer to use SourceLocation instead.
Location(int, int) - Constructor for class org.jparsec.error.Location
Deprecated.
Creates a Location instance.
longer(Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs both p1 and p2 and selects the longer match.
longer(Pattern, Pattern) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that tries both p1 and p2, and picks the one with the longer match length.
longest(Parser<? extends T>...) - Static method in class org.jparsec.Parsers
A Parser that runs every element of parsers and selects the longest match.
longest(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
A Parser that runs every element of parsers and selects the longest match.
longest(Pattern...) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that tries all of patterns, and picks the one with the longest match length.

M

many() - Method in class org.jparsec.Parser
p.many() is equivalent to p* in EBNF.
many() - Method in class org.jparsec.pattern.Pattern
Returns a Pattern object that matches this pattern for 0 or more times.
many(int) - Method in class org.jparsec.pattern.Pattern
Deprecated.
many(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Deprecated.
many(CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that matches 0 or more characters satisfying predicate.
many(CharPredicate) - Static method in class org.jparsec.Scanners
A scanner that scans greedily for 0 or more characters that satisfies the given CharPredicate.
many(Pattern, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use pattern.many().toScanner(name).
many1() - Method in class org.jparsec.Parser
p.many1() is equivalent to p+ in EBNF.
many1() - Method in class org.jparsec.pattern.Pattern
Returns a Pattern object that matches this pattern for 1 or more times.
many1(CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that matches 1 or more characters satisfying predicate.
many1(CharPredicate) - Static method in class org.jparsec.Scanners
A scanner that scans greedily for 1 or more characters that satisfies the given CharPredicate.
many1(Pattern, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use pattern.many1().toScanner(name).
Map<From,To> - Interface in org.jparsec.functors
Deprecated.
Use Function instead.
map(From) - Method in interface org.jparsec.functors.Map
Deprecated.
Maps from to the target object.
map(A, B) - Method in interface org.jparsec.functors.Map2
Deprecated.
Maps a and b to the target object.
map(A, B, C) - Method in interface org.jparsec.functors.Map3
Maps a, b and c to the target object.
map(A, B, C, D) - Method in interface org.jparsec.functors.Map4
Maps a, b, c and d to the target object.
map(A, B, C, D, E) - Method in interface org.jparsec.functors.Map5
Maps a, b, c, d and e to the target object.
map(A, B, C, D, E, F) - Method in interface org.jparsec.functors.Map6
 
map(A, B, C, D, E, F, G) - Method in interface org.jparsec.functors.Map7
 
map(A, B, C, D, E, F, G, H) - Method in interface org.jparsec.functors.Map8
 
map(Map<K, V>) - Static method in class org.jparsec.functors.Maps
Deprecated.
Use Map::get instead.
map(Function<? super T, ? extends R>) - Method in class org.jparsec.Parser
A Parser that runs this parser and transforms the return value using map.
map(Token) - Method in interface org.jparsec.TokenMap
Transforms token to an instance of T.
Map2<A,B,T> - Interface in org.jparsec.functors
Deprecated.
Use BiFunction instead.
Map3<A,B,C,T> - Interface in org.jparsec.functors
Maps 3 objects of type A, B and C respectively to an object of type T.
Map4<A,B,C,D,T> - Interface in org.jparsec.functors
Maps 4 objects of type A, B, C and D respectively to an object of type T.
Map5<A,B,C,D,E,T> - Interface in org.jparsec.functors
Maps 5 objects of type A, B, C, D and E respectively to an object of type T.
Map6<A,B,C,D,E,F,T> - Interface in org.jparsec.functors
Maps 6 objects to an object of type T.
Map7<A,B,C,D,E,F,G,T> - Interface in org.jparsec.functors
Maps 7 objects to an object of type T.
Map8<A,B,C,D,E,F,G,H,T> - Interface in org.jparsec.functors
Maps 8 objects to an object of type T.
Maps - Class in org.jparsec.functors
Provides common implementations of Map interface and the variants.
mapToString() - Static method in class org.jparsec.functors.Maps
Deprecated.
Use String::valueOf directly.
match(CharSequence, int, int) - Method in class org.jparsec.pattern.Pattern
Matches character range against the pattern.
MISMATCH - Static variable in class org.jparsec.pattern.Pattern
Returned by Pattern.match(CharSequence, int, int) method when match fails.

N

nestableBlockComment(String, String) - Static method in class org.jparsec.Scanners
A scanner for a nestable block comment that starts with begin and ends with end.
nestableBlockComment(String, String, Pattern) - Static method in class org.jparsec.Scanners
A scanner for a nestable block comment that starts with begin and ends with end.
nestableBlockComment(Parser<?>, Parser<?>, Parser<?>) - Static method in class org.jparsec.Scanners
A scanner for a nestable block comment that starts with begin and ends with end.
nestedScanner(Parser<?>, Parser<Void>) - Static method in class org.jparsec.Scanners
A scanner that after character level outer succeeds, subsequently feeds the recognized characters to inner for a nested scanning.
never() - Static method in class org.jparsec.Parsers
Parser that always fails.
NEVER - Static variable in class org.jparsec.pattern.CharPredicates
A CharPredicate that always returns false.
NEVER - Static variable in class org.jparsec.pattern.Patterns
A Pattern that always returns Pattern.MISMATCH.
newReference() - Static method in class org.jparsec.Parser
Creates a new instance of Parser.Reference.
next(Parser<R>) - Method in class org.jparsec.Parser
A Parser that sequentially executes this and then parser.
next(Function<? super T, ? extends Parser<? extends To>>) - Method in class org.jparsec.Parser
A Parser that executes this, maps the result using map to another Parser object to be executed as the next step.
next(Pattern) - Method in class org.jparsec.pattern.Pattern
Returns a Pattern object that sequentially matches the character range against this and then next.
not() - Method in class org.jparsec.Parser
A Parser that fails if this succeeds.
not(String) - Method in class org.jparsec.Parser
A Parser that fails if this succeeds.
not(CharPredicate) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if predicate evaluates to false.
not() - Method in class org.jparsec.pattern.Pattern
Returns a Pattern object that only matches if this pattern mismatches, 0 is returned otherwise.
not(Pattern) - Static method in class org.jparsec.pattern.Patterns
 
notAmong(String) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is not equal to any character in chars.
notAmong(String, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use Patterns.among(chars).not().toScanner(name), or isChar(CharPredicates.notAmong(chars), name).
notAmong(String) - Static method in class org.jparsec.Scanners
A scanner that succeeds and consumes the current character if it is not equal to any character in chars.
notChar(char) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is not equal to c.
notChar(char, String) - Static method in class org.jparsec.Scanners
Deprecated.
notChar(char) - Static method in class org.jparsec.Scanners
A scanner that succeeds and consumes the current character if it is not equal to ch.
notFollowedBy(Parser<?>) - Method in class org.jparsec.Parser
A Parser that succeeds if this succeeds and the pattern recognized by parser isn't following.
notRange(char, char) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is not within the range of [a, b].
notString(String) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the input has at least 1 character and doesn't match string.
notStringCaseInsensitive(String) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the input has at least 1 character and doesn't match string case insensitively.

O

OCT_INTEGER - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches an octal integer that starts with a 0 and is followed by 0 or more [0 - 7] characters.
OCT_INTEGER - Static variable in class org.jparsec.Scanners
Scanner for a octal number.
OCT_TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
A tokenizer that parses a octal integer number (valid patterns are: 0, 07, 017, 0371 etc.), and converts the string to a Long value.
operators(String...) - Static method in class org.jparsec.Terminals
Returns a Terminals object for lexing the operators with names specified in ops.
operators(Collection<String>) - Static method in class org.jparsec.Terminals
Returns a Terminals object for lexing the operators with names specified in ops.
OperatorTable<T> - Class in org.jparsec
Builds Parser to parse expressions with operator-precedence grammar.
OperatorTable() - Constructor for class org.jparsec.OperatorTable
 
optional() - Method in class org.jparsec.Parser
Deprecated.
since 3.0. Use #optional(null) or Parser.asOptional() instead.
optional(T) - Method in class org.jparsec.Parser
A Parser that returns defaultValue if this fails with no partial match.
optional() - Method in class org.jparsec.pattern.Pattern
Returns a Pattern object that matches with 0 length even if this mismatches.
or(Parser<? extends T>) - Method in class org.jparsec.Parser
p1.or(p2) is equivalent to p1 | p2 in EBNF.
or(Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 2 alternative parser objects.
or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 3 alternative parser objects.
or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 4 alternative parser objects.
or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 5 alternative parser objects.
or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 6 alternative parser objects.
or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 7 alternative parser objects.
or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 8 alternative parser objects.
or(Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that tries 9 alternative parser objects.
or(Parser<? extends T>...) - Static method in class org.jparsec.Parsers
A Parser that tries each alternative parser in alternatives.
or(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
A Parser that tries each alternative parser in alternatives.
or(CharPredicate, CharPredicate) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if either predicate1 or predicate2 evaluates to true.
or(CharPredicate...) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if any CharPredicate in predicates evaluates to true.
or(Pattern) - Method in class org.jparsec.pattern.Pattern
Returns Pattern object that matches if either this or p2 matches.
or(Pattern...) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that matches if any of patterns matches, in which case, the first match length is returned.
org.jparsec - package org.jparsec
Provides core Parser implementations for parser combinator logic.
org.jparsec.error - package org.jparsec.error
Provides interfaces and classes for advanced error handling.
org.jparsec.functors - package org.jparsec.functors
Provides common functor interfaces, such as Map for mapping parser results as well as some common implementations.
org.jparsec.pattern - package org.jparsec.pattern
Provides Pattern implementations for use by character level scanners.
otherwise(Parser<? extends T>) - Method in class org.jparsec.Parser
a.otherwise(fallback) runs fallback when a matches zero input.
outdent() - Method in class org.jparsec.Indentation
A Parser that recognizes the generated outdent token.

P

Pair<A,B> - Class in org.jparsec.functors
Deprecated.
Prefer to using a lambda expression to convert to your own type.
Pair(A, B) - Constructor for class org.jparsec.functors.Pair
Deprecated.
 
pair(A, B) - Static method in class org.jparsec.functors.Tuples
Deprecated.
Returns a Pair of 2 objects.
pair(Parser<? extends A>, Parser<? extends B>) - Static method in class org.jparsec.Parsers
Deprecated.
Prefer to converting to your own object with a lambda.
parse(CharSequence) - Method in class org.jparsec.Parser
Parses source.
parse(Readable) - Method in class org.jparsec.Parser
Parses source read from readable.
parse(CharSequence, Parser.Mode) - Method in class org.jparsec.Parser
Parses source under the given mode.
parse(CharSequence, String) - Method in class org.jparsec.Parser
Deprecated.
Please use Parser.parse(CharSequence) instead.
parse(Readable, String) - Method in class org.jparsec.Parser
Deprecated.
Please use Parser.parse(Readable) instead.
ParseErrorDetails - Interface in org.jparsec.error
Describes details of a parsing error to support fine-grained error handling.
Parser<T> - Class in org.jparsec
Defines grammar and encapsulates parsing logic.
PARSER - Static variable in class org.jparsec.Terminals.CharLiteral
Parser that recognizes Character tokens.
PARSER - Static variable in class org.jparsec.Terminals.DecimalLiteral
Parser that recognizes Tokens.Fragment tokens tagged as Tokens.Tag.DECIMAL.
PARSER - Static variable in class org.jparsec.Terminals.Identifier
Parser that recognizes identifier tokens.
PARSER - Static variable in class org.jparsec.Terminals.IntegerLiteral
Parser that recognizes Tokens.Fragment tokens tagged as Tokens.Tag.INTEGER.
PARSER - Static variable in class org.jparsec.Terminals.LongLiteral
Parser that recognizes Long tokens.
PARSER - Static variable in class org.jparsec.Terminals.ScientificNumberLiteral
Parser that recognies Tokens.ScientificNotation tokens.
PARSER - Static variable in class org.jparsec.Terminals.StringLiteral
Parser that recognizes String tokens.
Parser.Mode - Enum in org.jparsec
Defines the mode that a parser should be run in.
Parser.Reference<T> - Class in org.jparsec
An atomic mutable reference to Parser used in recursive grammars.
ParserException - Exception in org.jparsec.error
Is thrown when any grammar error happens or any exception is thrown during parsing.
ParserException(ParseErrorDetails, Location) - Constructor for exception org.jparsec.error.ParserException
Creates a ParserException object.
ParserException(ParseErrorDetails, String, Location) - Constructor for exception org.jparsec.error.ParserException
Deprecated.
ParserException(Throwable, ParseErrorDetails, String, Location) - Constructor for exception org.jparsec.error.ParserException
Deprecated.
Parsers - Class in org.jparsec
Provides common Parser implementations.
parseTree(CharSequence) - Method in class org.jparsec.Parser
Parses source and returns a ParseTree corresponding to the syntactical structure of the input.
ParseTree - Class in org.jparsec
Represents the syntactical structure of the input being parsed.
Pattern - Class in org.jparsec.pattern
Encapsulates algorithm to recognize certain string pattern.
Pattern() - Constructor for class org.jparsec.pattern.Pattern
 
pattern(Pattern, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use pattern.toScanner(name).
Patterns - Class in org.jparsec.pattern
Provides common Pattern implementations.
peek() - Method in class org.jparsec.Parser
A Parser that runs this and undoes any input consumption if succeeds.
peek() - Method in class org.jparsec.pattern.Pattern
Returns Pattern object that matches with match length 0 if this Pattern object matches.
postfix(Parser<? extends Function<? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
Adds a postfix unary operator.
postfix(Parser<? extends Function<? super T, ? extends T>>) - Method in class org.jparsec.Parser
A Parser that runs this and then runs op for 0 or more times greedily.
prefix(Parser<? extends Function<? super T, ? extends T>>, int) - Method in class org.jparsec.OperatorTable
Adds a prefix unary operator.
prefix(Parser<? extends Function<? super T, ? extends T>>) - Method in class org.jparsec.Parser
A Parser that runs op for 0 or more times greedily, then runs this.

Q

quoted(char, char) - Static method in class org.jparsec.Scanners
A scanner for a quoted string that starts with character begin and ends with character end.
quoted(Parser<Void>, Parser<Void>, Parser<?>) - Static method in class org.jparsec.Scanners
Deprecated.
Use Parsers.sequence(begin, quoted.skipMany(), end).source().

R

range(char, char) - Static method in class org.jparsec.pattern.CharPredicates
A CharPredicate that returns true if the character is within the range of [a, b].
range(char, char) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the current character in the input is between character c1 and c2, in which case 1 is returned as match length.
Reference() - Constructor for class org.jparsec.Parser.Reference
 
regex(Pattern) - Static method in class org.jparsec.pattern.Patterns
Adapts a regular expression pattern to a Pattern.
regex(String) - Static method in class org.jparsec.pattern.Patterns
Adapts a regular expression pattern string to a Pattern.
REGEXP_MODIFIERS - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches regular expression modifiers, which is a list of alpha characters.
REGEXP_PATTERN - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches any regular expression pattern string in the form of /some pattern here/.
reluctantBetween(Parser<?>, Parser<?>) - Method in class org.jparsec.Parser
Deprecated.
This method probably only works in the simplest cases. And it's a character-level parser only. Use it at your own risk. It may be deleted later when we find a better way.
repeat(int) - Method in class org.jparsec.pattern.Pattern
Deprecated.
Use Pattern.times(int) instead.
repeat(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches if the input has at least n characters and the first n characters all satisfy predicate.
RESERVED - Static variable in class org.jparsec.Terminals
Parser that recognizes reserved word tokens.
reserved(String) - Static method in class org.jparsec.Tokens
retn(R) - Method in class org.jparsec.Parser
A Parser that executes this, and returns value if succeeds.
runnable(Runnable) - Static method in class org.jparsec.Parsers
Deprecated.

S

Scanners - Class in org.jparsec
Provides common Parser implementations that scan the source and match certain string patterns.
SCIENTIFIC_NOTATION - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches a scientific notation, such as 1e12, 1.2E-1, etc.
SCIENTIFIC_NOTATION - Static variable in class org.jparsec.Scanners
Scanner for a scientific notation.
scientificNotation(String, String) - Static method in class org.jparsec.Tokens
Returns a Tokens.ScientificNotation with significand before the 'e' or 'E' and exponent after.
ScientificNotation(String, String) - Constructor for class org.jparsec.Tokens.ScientificNotation
Deprecated.
Use Tokens.scientificNotation() instead.
sepBy(Parser<?>) - Method in class org.jparsec.Parser
A Parser that runs this 0 or more times separated by delim.
sepBy1(Parser<?>) - Method in class org.jparsec.Parser
A Parser that runs this 1 or more times separated by delim.
sepEndBy(Parser<?>) - Method in class org.jparsec.Parser
A Parser that runs this for 0 ore more times separated and optionally terminated by delim.
sepEndBy1(Parser<?>) - Method in class org.jparsec.Parser
A Parser that runs this for 1 ore more times separated and optionally terminated by delim.
sequence(Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
A Parser that runs 2 parser objects sequentially.
sequence(Parser<?>, Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
A Parser that runs 3 parser objects sequentially.
sequence(Parser<?>, Parser<?>, Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
A Parser that runs 4 parser objects sequentially.
sequence(Parser<?>, Parser<?>, Parser<?>, Parser<?>, Parser<T>) - Static method in class org.jparsec.Parsers
A Parser that runs 5 parser objects sequentially.
sequence(Parser<A>, Parser<B>, BiFunction<? super A, ? super B, ? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs p1 and p2 sequentially and transforms the return values using map.
sequence(Parser<A>, Parser<B>, Parser<C>, Map3<? super A, ? super B, ? super C, ? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs 3 parser objects sequentially and transforms the return values using map.
sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Map4<? super A, ? super B, ? super C, ? super D, ? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs 4 parser objects sequentially and transforms the return values using map.
sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Map5<? super A, ? super B, ? super C, ? super D, ? super E, ? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs 5 parser objects sequentially and transforms the return values using map.
sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Parser<F>, Map6<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs 6 parser objects sequentially and transforms the return values using map.
sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Parser<F>, Parser<G>, Map7<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs 7 parser objects sequentially and transforms the return values using map.
sequence(Parser<A>, Parser<B>, Parser<C>, Parser<D>, Parser<E>, Parser<F>, Parser<G>, Parser<H>, Map8<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs 7 parser objects sequentially and transforms the return values using map.
sequence(Parser<?>...) - Static method in class org.jparsec.Parsers
A Parser that runs parsers sequentially and discards the return values.
sequence(Iterable<? extends Parser<?>>) - Static method in class org.jparsec.Parsers
A Parser that runs parsers sequentially and discards the return values.
sequence(Pattern...) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches the input against patterns sequentially.
setParseTree(ParseTree) - Method in exception org.jparsec.error.ParserException
 
shorter(Parser<? extends T>, Parser<? extends T>) - Static method in class org.jparsec.Parsers
A Parser that runs both p1 and p2 and selects the shorter match.
shorter(Pattern, Pattern) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that tries both p1 and p2, and picks the one with the shorter match length.
shortest(Parser<? extends T>...) - Static method in class org.jparsec.Parsers
A Parser that runs every element of parsers and selects the shortest match.
shortest(Iterable<? extends Parser<? extends T>>) - Static method in class org.jparsec.Parsers
A Parser that runs every element of parsers and selects the shortest match.
shortest(Pattern...) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that tries all of patterns, and picks the one with the shortest match length.
significand - Variable in class org.jparsec.Tokens.ScientificNotation
The significand (mantissa) before the "E".
SINGLE_QUOTE_CHAR - Static variable in class org.jparsec.Scanners
Scanner for a c/c++/java style character literal.
SINGLE_QUOTE_STRING - Static variable in class org.jparsec.Scanners
Scanner with a pattern for SQL style string literal.
SINGLE_QUOTE_TOKENIZER - Static variable in class org.jparsec.Terminals.CharLiteral
A tokenizer that parses single quoted character literal (escaped by '\'), and then converts the character to a Character token.
SINGLE_QUOTE_TOKENIZER - Static variable in class org.jparsec.Terminals.StringLiteral
A tokenizer that parses single quoted string literal (single quote is escaped with another single quote), and transforms the quoted content by applying escape characters.
skipAtLeast(int) - Method in class org.jparsec.Parser
A Parser that runs this parser greedily for at least min times and ignores the return values.
skipMany() - Method in class org.jparsec.Parser
p.skipMany() is equivalent to p* in EBNF.
skipMany1() - Method in class org.jparsec.Parser
p.skipMany1() is equivalent to p+ in EBNF.
skipTimes(int) - Method in class org.jparsec.Parser
A Parser that sequentially runs this for n times and ignores the return values.
skipTimes(int, int) - Method in class org.jparsec.Parser
A Parser that runs this parser for at least min times and up to max times, with all the return values ignored.
some(int) - Method in class org.jparsec.pattern.Pattern
Deprecated.
Use Pattern.atMost(int) instead.
some(int, int) - Method in class org.jparsec.pattern.Pattern
Deprecated.
some(int, int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Deprecated.
some(int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Deprecated.
source() - Method in class org.jparsec.Parser
A Parser that returns the matched string in the original source.
SOURCE_LOCATION - Static variable in class org.jparsec.Parsers
A Parser that returns the current location in the source.
SourceLocation - Class in org.jparsec
Represents a location inside the source.
SQL_BLOCK_COMMENT - Static variable in class org.jparsec.Scanners
Scanner for SQL style block comment.
SQL_DELIMITER - Static variable in class org.jparsec.Scanners
Scanner for the SQL style delimiter of tokens.
SQL_LINE_COMMENT - Static variable in class org.jparsec.Scanners
Scanner for SQL style line comment.
STRICT_DECIMAL - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches a decimal number that has at least one digit before the decimal point.
string(String) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches string literally.
string(String) - Static method in class org.jparsec.Scanners
Matches the input against the specified string.
string(String, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use Patterns.string(str).toScanner(name).
stringCaseInsensitive(String) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern object that matches string case insensitively.
stringCaseInsensitive(String, String) - Static method in class org.jparsec.Scanners
Deprecated.
Use Patterns.stringCaseInsensitive(str).toScanner(name).
stringCaseInsensitive(String) - Static method in class org.jparsec.Scanners
A scanner that matches the input against the specified string case insensitively.
succeeds() - Method in class org.jparsec.Parser
A Parser that returns true if this succeeds, false otherwise.

T

tag() - Method in class org.jparsec.Tokens.Fragment
Returns the tag of the token value.
Terminals - Class in org.jparsec
Provides convenient API to build lexer and parsers for terminals.
Terminals.Builder - Class in org.jparsec
Builds Terminals instance by defining the words and keywords recognized.
Terminals.CharLiteral - Class in org.jparsec
Entry point for parser and tokenizers of character literal.
Terminals.DecimalLiteral - Class in org.jparsec
Entry point for parser and tokenizers of decimal number literal represented as String.
Terminals.Identifier - Class in org.jparsec
Entry point for parser and tokenizers of regular identifier.
Terminals.IntegerLiteral - Class in org.jparsec
Entry point for any arbitrary integer literal represented as a String.
Terminals.LongLiteral - Class in org.jparsec
Entry point for parser and tokenizers of integral number literal represented as Long.
Terminals.ScientificNumberLiteral - Class in org.jparsec
Entry point for parser and tokenizers of scientific notation literal.
Terminals.StringLiteral - Class in org.jparsec
Entry point for parser and tokenizers of string literal.
text() - Method in class org.jparsec.Tokens.Fragment
Returns the text of the token value.
times(int) - Method in class org.jparsec.Parser
A Parser that runs this for n times and collects the return values in a List.
times(int, int) - Method in class org.jparsec.Parser
A Parser that runs this parser for at least min times and up to max times.
times(int, int) - Method in class org.jparsec.pattern.Pattern
Returns Pattern object that matches this pattern for at least min times and up to max times.
times(int) - Method in class org.jparsec.pattern.Pattern
Returns Pattern object that matches the input against this pattern for n times.
times(int, int, CharPredicate) - Static method in class org.jparsec.pattern.Patterns
Returns a Pattern that matches at least min and up to max number of characters satisfying predicate,
TO_INTEGER - Static variable in class org.jparsec.functors.Maps
Deprecated.
Use Integer::valueOf directly.
TO_LOWER_CASE - Static variable in class org.jparsec.functors.Maps
The UnaryOperator that maps a String to lower case using Locale.US.
TO_UPPER_CASE - Static variable in class org.jparsec.functors.Maps
The UnaryOperator that maps a String to upper case using Locale.US.
toEnum(Class<E>) - Static method in class org.jparsec.functors.Maps
Returns a Map that maps the string representation of an enum to the corresponding enum value by calling Enum.valueOf(Class, String).
token() - Method in class org.jparsec.Parser
A Parser that runs this and wraps the return value in a Token.
token(TokenMap<? extends T>) - Static method in class org.jparsec.Parsers
Checks the current token with the fromToken object.
Token - Class in org.jparsec
Represents any token with a token value and the 0-based index in the source.
Token(int, int, Object) - Constructor for class org.jparsec.Token
 
TOKENIZER - Static variable in class org.jparsec.Terminals.DecimalLiteral
A tokenizer that parses a decimal number (valid patterns are: 1, 2.3, 00, 0., .23) and returns a Tokens.Fragment token tagged as Tokens.Tag.DECIMAL.
TOKENIZER - Static variable in class org.jparsec.Terminals.Identifier
A tokenizer that parses any identifier and returns a Tokens.Fragment token tagged as Tokens.Tag.IDENTIFIER.
TOKENIZER - Static variable in class org.jparsec.Terminals.IntegerLiteral
A tokenizer that parses a integer number (valid patterns are: 0, 00, 1, 10) and returns a Tokens.Fragment token tagged as Tokens.Tag.INTEGER.
TOKENIZER - Static variable in class org.jparsec.Terminals.LongLiteral
A tokenizer that parses decimal, hex, and octal numbers and converts the string to a Long value.
TOKENIZER - Static variable in class org.jparsec.Terminals.ScientificNumberLiteral
A tokenizer that parses a scientific notation and converts the string to a Tokens.ScientificNotation value.
tokenizeWordsWith(Function<String, ?>) - Method in class org.jparsec.Terminals.Builder
Configures alternative tokenization strategy for words (except keywords).
TokenMap<T> - Interface in org.jparsec
Maps a Token to a an object of type T, or null if the token isn't recognized.
Tokens - Class in org.jparsec
Provides common token values.
Tokens.Fragment - Class in org.jparsec
Represents a fragment tagged according to its semantics.
Tokens.ScientificNotation - Class in org.jparsec
Represents a scientific notation with a significand (mantissa) and an exponent.
Tokens.Tag - Enum in org.jparsec
Pre-built Tokens.Fragment token tags.
tokenType(Class<? extends T>, String) - Static method in class org.jparsec.Parsers
Checks whether the current token value is of type, in which case, the token value is returned and parse succeeds.
toLowerCase(Locale) - Static method in class org.jparsec.functors.Maps
Returns a UnaryOperator that maps a String to lower case using locale.
toPair() - Static method in class org.jparsec.functors.Maps
A Map2 object that maps 2 values into a Pair object.
toScanner(String) - Method in class org.jparsec.pattern.Pattern
Returns a scanner parser using this pattern.
toString() - Method in class org.jparsec.error.Location
Deprecated.
 
toString() - Method in class org.jparsec.functors.Pair
Deprecated.
 
toString() - Method in class org.jparsec.functors.Tuple3
Deprecated.
 
toString() - Method in class org.jparsec.functors.Tuple4
Deprecated.
 
toString() - Method in class org.jparsec.functors.Tuple5
Deprecated.
 
toString() - Method in class org.jparsec.ParseTree
 
toString() - Method in class org.jparsec.Token
Returns the string representation of the token value.
toString() - Method in class org.jparsec.Tokens.Fragment
 
toString() - Method in class org.jparsec.Tokens.ScientificNotation
 
toString() - Method in class org.jparsec.WithSource
Returns the underlying source text.
toTuple3() - Static method in class org.jparsec.functors.Maps
Deprecated.
toTuple4() - Static method in class org.jparsec.functors.Maps
Deprecated.
toTuple5() - Static method in class org.jparsec.functors.Maps
Deprecated.
toUpperCase(Locale) - Static method in class org.jparsec.functors.Maps
Returns a UnaryOperator that maps a String to upper case using locale.
tuple(A, B) - Static method in class org.jparsec.functors.Tuples
Deprecated.
Returns a Pair of 2 objects.
tuple(A, B, C) - Static method in class org.jparsec.functors.Tuples
Deprecated.
Returns a Tuple3 of 3 objects.
tuple(A, B, C, D) - Static method in class org.jparsec.functors.Tuples
Deprecated.
Returns a Tuple4 of 4 objects.
tuple(A, B, C, D, E) - Static method in class org.jparsec.functors.Tuples
Deprecated.
Returns a Tuple5 of 5 objects.
tuple(Parser<? extends A>, Parser<? extends B>) - Static method in class org.jparsec.Parsers
Deprecated.
Prefer to converting to your own object with a lambda.
tuple(Parser<? extends A>, Parser<? extends B>, Parser<? extends C>) - Static method in class org.jparsec.Parsers
Deprecated.
Prefer to converting to your own object with a lambda.
tuple(Parser<? extends A>, Parser<? extends B>, Parser<? extends C>, Parser<? extends D>) - Static method in class org.jparsec.Parsers
Deprecated.
Prefer to converting to your own object with a lambda.
tuple(Parser<? extends A>, Parser<? extends B>, Parser<? extends C>, Parser<? extends D>, Parser<? extends E>) - Static method in class org.jparsec.Parsers
Deprecated.
Prefer to converting to your own object with a lambda.
Tuple3<A,B,C> - Class in org.jparsec.functors
Deprecated.
Prefer to using a lambda expression to convert to your own type.
Tuple3(A, B, C) - Constructor for class org.jparsec.functors.Tuple3
Deprecated.
 
Tuple4<A,B,C,D> - Class in org.jparsec.functors
Deprecated.
Prefer to using a lambda expression to convert to your own type.
Tuple4(A, B, C, D) - Constructor for class org.jparsec.functors.Tuple4
Deprecated.
 
Tuple5<A,B,C,D,E> - Class in org.jparsec.functors
Deprecated.
Prefer to using a lambda expression to convert to your own type.
Tuple5(A, B, C, D, E) - Constructor for class org.jparsec.functors.Tuple5
Deprecated.
 
Tuples - Class in org.jparsec.functors
Deprecated.
Prefer to using a lambda expression to convert to your own type.
Tuples() - Constructor for class org.jparsec.functors.Tuples
Deprecated.
 

U

Unary<T> - Interface in org.jparsec.functors
Deprecated.
Use UnaryOperator instead.
unexpected(String) - Static method in class org.jparsec.Parsers
A Parser that fails and reports that name is logically unexpected.
until(Parser<?>) - Method in class org.jparsec.Parser
A Parser that matches this parser zero or many times until the given parser succeeds.

V

value() - Method in class org.jparsec.Token
Returns the token value.
valueOf(String) - Static method in enum org.jparsec.Parser.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.jparsec.Tokens.Tag
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.jparsec.Parser.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.jparsec.Tokens.Tag
Returns an array containing the constants of this enum type, in the order they are declared.

W

WHITESPACES - Static variable in class org.jparsec.Indentation
A Parser that recognizes 1 or more whitespace characters on the same line.
WHITESPACES - Static variable in class org.jparsec.Scanners
A scanner that scans greedily for 1 or more whitespace characters.
withSource() - Method in class org.jparsec.Parser
A Parser that returns both parsed object and matched string.
WithSource<T> - Class in org.jparsec
Parsed result with the matched source text.
WithSource(T, String) - Constructor for class org.jparsec.WithSource
 
WORD - Static variable in class org.jparsec.pattern.Patterns
A Pattern object that matches a standard english word, which starts with either an underscore or an alpha character, followed by 0 or more alphanumeric characters.
words(Parser<String>) - Method in class org.jparsec.Terminals
Starts to build a new Terminals instance that recognizes words not already recognized by this Terminals instance (typically operators).
A B C D E F G H I J K L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2013–2018 jparsec. All rights reserved.