Top Deprecated By Reference
jParsec 3.1

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

the result
org.jparsec.Parser.parse
(CharSequence
the source string
source
,
String
the name of the module, this name appears in error message
moduleName
)

Please use parse(CharSequence) instead.

Returns:

the result
org.jparsec.Parser.parse
(Readable
where the source is read from
readable
,
String
the name of the module, this name appears in error message
moduleName
)

Please use parse(Readable) instead.

org.jparsec.Parser.reluctantBetween(Parser<?> before, Parser<?> after)

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.

org.jparsec.Parsers.pair(Parser<? extends A> p1, Parser<? extends B> p2)

Prefer to converting to your own object with a lambda.

org.jparsec.Parsers.tuple(Parser<? extends A> p1, Parser<? extends B> p2)

Prefer to converting to your own object with a lambda.

org.jparsec.Parsers.tuple(Parser<? extends A> p1, Parser<? extends B> p2, Parser<? extends C> p3)

Prefer to converting to your own object with a lambda.

org.jparsec.Parsers.tuple(Parser<? extends A> p1, Parser<? extends B> p2, Parser<? extends C> p3, Parser<? extends D> p4)

Prefer to converting to your own object with a lambda.

org.jparsec.Parsers.tuple(Parser<? extends A> p1, Parser<? extends B> p2, Parser<? extends C> p3, Parser<? extends D> p4, Parser<? extends E> p5)

Prefer to converting to your own object with a lambda.

Returns:

the scanner.
org.jparsec.Scanners.among
(String
the characters.
chars
,
String
the name of what's expected logically. Is used in error message.
name
)

Use Patterns.among(chars).toScanner(name).

Returns:

the scanner.
org.jparsec.Scanners.isChar
(CharPredicate
the predicate.
predicate
,
String
the name of what's expected logically. Is used in error message.
name
)

Implement Object#toString in the CharPredicate, or use Patterns.isChar(predicate).toScanner(name).

Returns:

the scanner.
org.jparsec.Scanners.isChar
(char
the expected character.
ch
,
String
the name of what's expected logically. Is used in error message.
name
)

Use isChar(char) instead or use Patterns.isChar(ch).toScanner(name).

Returns:

the Parser object.
org.jparsec.Scanners.many
(Pattern
the pattern object.
pattern
,
String
the name of what's expected logically. Is used in error message.
name
)

Use pattern.many().toScanner(name).

Returns:

the Parser object.
org.jparsec.Scanners.many1
(Pattern
the pattern object.
pattern
,
String
the name of what's expected logically. Is used in error message.
name
)

Use pattern.many1().toScanner(name).

Returns:

the scanner.
org.jparsec.Scanners.notAmong
(String
the characters.
chars
,
String
the name of what's expected logically. Is used in error message.
name
)

Use Patterns.among(chars).not().toScanner(name), or isChar(CharPredicates.notAmong(chars), name).

Returns:

the scanner.
org.jparsec.Scanners.notChar
(char
the expected character.
ch
,
String
the name of what's expected logically. Is used in error message.
name
)

Use notChar(char).

Returns:

the Parser object.
org.jparsec.Scanners.pattern
(final Pattern
the pattern object.
pattern
,
final String
the name of what's expected logically. Is used in error message.
name
)

Use pattern.toScanner(name).

Returns:

the scanner.
org.jparsec.Scanners.quoted
(Parser<Void>
begins a quote
begin
,
Parser<Void>
ends a quote
end
,
Parser<?>
the parser that recognizes the quoted pattern.
quoted
)

Use Parsers.sequence(begin, quoted.skipMany(), end).source().

Returns:

the scanner.
org.jparsec.Scanners.string
(String
the string to match
str
,
String
the name of what's expected logically. Is used in error message.
name
)

Use Patterns.string(str).toScanner(name).

Returns:

the scanner.
org.jparsec.Scanners.stringCaseInsensitive
(String
the string to match
str
,
String
the name of what's expected logically. Is used in error message.
name
)

Use Patterns.stringCaseInsensitive(str).toScanner(name).

Returns:

the Terminals instance.
org.jparsec.Terminals.caseInsensitive
(String[]
the operator names.
ops
,
String[]
the keyword names.
keywords
)

Use operators(ops) .words(Scanners.IDENTIFIER) .caseInsensitiveKeywords(keywords) .build() instead.

Returns:

the Terminals instance.
org.jparsec.Terminals.caseInsensitive
(Parser<String>
the scanner that returns a word in the language.
wordScanner
,
String[]
the operator names.
ops
,
String[]
the keyword names.
keywords
)

Use operators(ops) .words(wordScanner) .caseInsensitiveKeywords(keywords) .build() instead.

Returns:

the Terminals instance.
org.jparsec.Terminals.caseInsensitive
(Parser<String>
the scanner that returns a word in the language.
wordScanner
,
String[]
the operator names.
ops
,
String[]
the keyword names.
keywords
,
Function<String, ?>
maps the text to a token value for non-keywords recognized by wordScanner.
wordMap
)

Use operators(ops) .words(wordScanner) .tokenizeWordsWith(wordMap) .caseInsensitiveKeywords(keywords) .build() instead.

Returns:

the Terminals instance.
org.jparsec.Terminals.caseSensitive
(String[]
the operator names.
ops
,
String[]
the keyword names.
keywords
)

Use operators(ops) .words(Scanners.IDENTIFIER) .keywords(keywords) .build() instead.

Returns:

the Terminals instance.
org.jparsec.Terminals.caseSensitive
(Parser<String>
the scanner that returns a word in the language.
wordScanner
,
String[]
the operator names.
ops
,
String[]
the keyword names.
keywords
)

Use operators(ops) .words(wordScanner) .keywords(keywords) .build() instead.

Returns:

the Terminals instance.
org.jparsec.Terminals.caseSensitive
(Parser<String>
the scanner that returns a word in the language.
wordScanner
,
String[]
the operator names.
ops
,
String[]
the keyword names.
keywords
,
Function<String, ?>
maps the text to a token value for non-keywords recognized by wordScanner.
wordMap
)

Use operators(ops) .words(wordScanner) .tokenizeWordsWith(wordMap) .keywords(keywords) .build() instead.

org.jparsec.Tokens.Fragment(String text, Object tag)

Use Tokens.fragment() instead.

org.jparsec.Tokens.ScientificNotation(String mantissa, String exp)

Use Tokens.scientificNotation() instead.

org.jparsec.error.ParserException(ParseErrorDetails
the ParseErrorDetails that describes the error details.
details
,
String
the module name.
moduleName
,
Location
the error location.
location
)

org.jparsec.error.ParserException(Throwable
the exception that causes this.
cause
,
ParseErrorDetails
the ParseErrorDetails that describes the error details.
details
,
String
the module name.
moduleName
,
Location
the location.
location
)

org.jparsec.functors.Maps.TO_INTEGER

Use Integer::valueOf directly.

org.jparsec.functors.Maps.constant(T v)

Use from -> to directly.

org.jparsec.functors.Maps.map(Map<K, V> m)

Use Map::get instead.

org.jparsec.functors.Maps.mapToString()

Use String::valueOf directly.

org.jparsec.functors.Pair<A, B>

Prefer to using a lambda expression to convert to your own type.

org.jparsec.functors.Tuple3<A, B, C>

Prefer to using a lambda expression to convert to your own type.

org.jparsec.functors.Tuple4<A, B, C, D>

Prefer to using a lambda expression to convert to your own type.

org.jparsec.functors.Tuple5<A, B, C, D, E>

Prefer to using a lambda expression to convert to your own type.

org.jparsec.functors.Tuples

Prefer to using a lambda expression to convert to your own type.

Returns:

the new Pattern object.
org.jparsec.pattern.Pattern.many
(int
the minimal number of times to match.
min
)

Use atLeast instead.

Returns:

the new Pattern object.
org.jparsec.pattern.Pattern.some
(int
the maximal number of times to match.
max
)

Use atMost instead.

Returns:

the new Pattern object.
org.jparsec.pattern.Pattern.some
(int
the minimal number of times to match.
min
,
int
the maximal number of times to match.
max
)

Use times(int, int) instead.

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description
org.jparsec.SourceLocation.location

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.SourceLocation.getLocation()

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.SourceLocator.getLineBreakLocation(int lineIndex)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.SourceLocator.locate(int index)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.SourceLocator.location(int l, int c)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.SourceLocator.lookup(int index)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.SourceLocator.scanTo(int index)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.error.ErrorReporter.toString(ParseErrorDetails details, Location location)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.error.ParserException.location

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.error.ParserException(ParseErrorDetails
the ParseErrorDetails that describes the error details.
details
,
Location
the error location.
location
)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.error.ParserException.toErrorMessage(String message, String module, ParseErrorDetails details, Location location)

Location is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Maps.toPair()

Map2 is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Pair.equals(Pair<?, ?> other)

Pair is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuple3.equals(Tuple3<?, ?, ?> other)

Tuple3 is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuple4.equals(Tuple4<?, ?, ?, ?> other)

Tuple4 is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuple5.equals(Tuple5<?, ?, ?, ?, ?> other)

Tuple5 is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuples.pair(A a, B b)

Pair is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuples.tuple(A a, B b)

Pair is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuples.tuple(A a, B b, C c)

Tuple3 is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuples.tuple(A a, B b, C c, D d)

Tuple4 is deprecated or references (maybe indirectly) at least one deprecated element.

org.jparsec.functors.Tuples.tuple(A a, B b, C c, D d, E e)

Tuple5 is deprecated or references (maybe indirectly) at least one deprecated element.