Class MFParser
java.lang.Object
com.ibm.icu.message2.MFParser
Deprecated.
This API is for technology preview only.
This class parses a
MessageFormat 2 syntax into a data model MFDataModel.Message.
It is used by MessageFormatter, but it might be handy for various tools.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intDeprecated.private final InputSourceDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckCondition(boolean condition, String message) Deprecated.private voidDeprecated.private MFDataModel.AttributeDeprecated.private List<MFDataModel.Attribute> Deprecated.private MFDataModel.MessageDeprecated.private MFDataModel.DeclarationDeprecated.private MFDataModel.FunctionRefgetFunction(boolean whitespaceRequired) Deprecated.private MFDataModel.ExpressionDeprecated.private StringDeprecated.private MFDataModel.LiteralOrCatchallKeygetKey(boolean requireSpaces) Deprecated.private MFDataModel.LiteralgetLiteral(boolean normalize) Deprecated.private MFDataModel.ExpressionDeprecated.private MFDataModel.LiteralOrVariableRefDeprecated.private MFDataModel.MarkupDeprecated.private MFDataModel.FunctionRefDeprecated.private MFDataModel.SelectMessagegetMatch(List<MFDataModel.Declaration> declarations) Deprecated.private StringgetName()Deprecated.private MFDataModel.OptionDeprecated.private Map<String, MFDataModel.Option> Deprecated.private MFDataModel.PatternDeprecated.private MFDataModel.PatternPartDeprecated.private MFDataModel.ExpressionDeprecated.private MFDataModel.LiteralgetQuotedLiteral(boolean normalize) Deprecated.private MFDataModel.PatternDeprecated.private StringDeprecated.private MFDataModel.LiteralgetUnQuotedLiteral(boolean normalize) Deprecated.private MFDataModel.VariableExpressionDeprecated.private MFDataModel.VariableRefDeprecated.private MFDataModel.VariantDeprecated.static MFDataModel.MessageDeprecated.This API is for technology preview only.private MFDataModel.MessageDeprecated.private StringpeekWithRegExp(Pattern pattern) Deprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.private intDeprecated.
-
Field Details
-
EOF
private static final int EOFDeprecated.- See Also:
-
input
Deprecated.
-
-
Constructor Details
-
MFParser
MFParser(String text) Deprecated.
-
-
Method Details
-
parse
Deprecated.This API is for technology preview only.Parses aMessageFormat 2syntax into aMFDataModel.Message.It is used by
MessageFormatter, but it might be handy for various tools.- Parameters:
input- the text to parse- Returns:
- the parsed
MFDataModel.Message - Throws:
MFParseException- if errors are detected
-
parseImpl
Deprecated.- Throws:
MFParseException
-
getPattern
Deprecated.- Throws:
MFParseException
-
getPatternPart
Deprecated.- Throws:
MFParseException
-
getTextCharOrEscapedChar
Deprecated. -
getPlaceholder
Deprecated.- Throws:
MFParseException
-
getFunction
Deprecated.- Throws:
MFParseException
-
getMarkupFunction
Deprecated.- Throws:
MFParseException
-
getLiteralExpression
Deprecated.- Throws:
MFParseException
-
getVariableExpression
Deprecated.- Throws:
MFParseException
-
getFunctionExpression
Deprecated.- Throws:
MFParseException
-
getMarkup
-
getAttributes
Deprecated.- Throws:
MFParseException
-
getAttribute
Deprecated.- Throws:
MFParseException
-
getIdentifier
-
getOptions
Deprecated.- Throws:
MFParseException
-
getOption
-
getLiteralOrVariableRef
Deprecated.- Throws:
MFParseException
-
getLiteral
Deprecated.- Throws:
MFParseException
-
getVariableRef
Deprecated.- Throws:
MFParseException
-
getQuotedLiteral
Deprecated.- Throws:
MFParseException
-
getUnQuotedLiteral
Deprecated.- Throws:
MFParseException
-
skipRequiredWhitespaces
-
skipOptionalBidi
private int skipOptionalBidi()Deprecated. -
skipOptionalWhitespaces
private int skipOptionalWhitespaces()Deprecated. -
skipWhitespaces
private int skipWhitespaces()Deprecated. -
skipOneOptionalBidi
private int skipOneOptionalBidi()Deprecated. -
getComplexMessage
Deprecated.- Throws:
MFParseException
-
getMatch
private MFDataModel.SelectMessage getMatch(List<MFDataModel.Declaration> declarations) throws MFParseException Deprecated.- Throws:
MFParseException
-
getVariant
Deprecated.- Throws:
MFParseException
-
getKey
Deprecated.- Throws:
MFParseException
-
getDeclaration
Deprecated.- Throws:
MFParseException
-
getQuotedPattern
Deprecated.- Throws:
MFParseException
-
getName
-
checkCondition
Deprecated.- Throws:
MFParseException
-
error
-
peekWithRegExp
-