Top Fields Constructors Methods
org.jparsec

pack-priv final Class BestParser<T>

extends Parser<T>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final IntOrder
private final Parser<? extends T>[]

Constructor Summary

AccessConstructor and Description
pack-priv
BestParser(Parser<? extends T>[] parsers, IntOrder order)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
apply(ParseContext ctxt)

Implements abstract org.jparsec.Parser.apply.

private void
applyForBestFit(int from, ParseContext ctxt, Object originalResult, int originalStep, int originalAt, TreeNode originalLatestChild)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.jparsec.Parser:
asDelimiterasOptionalatLeastatomicbetweencastendByendBy1failsfollowedByfromfromgetReturnifelseifelseinfixlinfixninfixrlabellexermanymany1mapnewReferencenextnextnotnotnotFollowedByoptionaloptionalorotherwiseparseparseparseparseparseparseTreepeekpostfixprefixreadreluctantBetweenretnsepBysepBy1sepEndBysepEndBy1skipAtLeastskipManyskipMany1skipTimesskipTimessourcesucceedstimestimestokenuntilwithSource

Field Detail

orderback to summary
private final IntOrder order
parsersback to summary
private final Parser<? extends T>[] parsers

Constructor Detail

BestParserback to summary
pack-priv BestParser(Parser<? extends T>[] parsers, IntOrder order)

Method Detail

applyback to summary
pack-priv boolean apply(ParseContext ctxt)

Implements abstract org.jparsec.Parser.apply.

Annotations
@Override
applyForBestFitback to summary
private void applyForBestFit(int from, ParseContext ctxt, Object originalResult, int originalStep, int originalAt, TreeNode originalLatestChild)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override