Package com.ibm.icu.message2
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.private static final PatternDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckCondition(boolean condition, String message) Deprecated.private voidDeprecated.private MFDataModel.AnnotationDeprecated.private MFDataModel.ExpressionDeprecated.private MFDataModel.AttributeDeprecated.private List<MFDataModel.Attribute> Deprecated.private MFDataModel.MessageDeprecated.private MFDataModel.DeclarationDeprecated.private StringDeprecated.private MFDataModel.LiteralOrCatchallKeygetKey(boolean requireSpaces) Deprecated.private MFDataModel.LiteralDeprecated.private MFDataModel.ExpressionDeprecated.private MFDataModel.LiteralOrVariableRefDeprecated.private MFDataModel.MarkupDeprecated.private MFDataModel.AnnotationDeprecated.private MFDataModel.SelectMessagegetMatch(List<MFDataModel.Declaration> declarations) Deprecated.private StringgetName()Deprecated.private MFDataModel.LiteralDeprecated.private MFDataModel.OptionDeprecated.private Map<String, MFDataModel.Option> Deprecated.private MFDataModel.PatternDeprecated.private MFDataModel.PatternPartDeprecated.private MFDataModel.ExpressionDeprecated.private MFDataModel.LiteralDeprecated.private MFDataModel.PatternDeprecated.private StringDeprecated.private StringgetText()Deprecated.private MFDataModel.LiteralDeprecated.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 voidDeprecated.private voidDeprecated.private intDeprecated.
-
Field Details
-
EOF
private static final int EOFDeprecated.- See Also:
-
input
Deprecated. -
RE_NUMBER_LITERAL
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
-
getText
Deprecated. -
getPlaceholder
Deprecated.- Throws:
MFParseException
-
getAnnotation
Deprecated.- Throws:
MFParseException
-
getMarkupAnnotation
Deprecated.- Throws:
MFParseException
-
getLiteralExpression
Deprecated.- Throws:
MFParseException
-
getVariableExpression
Deprecated.- Throws:
MFParseException
-
getAnnotationExpression
Deprecated.- Throws:
MFParseException
-
getMarkup
Deprecated.- Throws:
MFParseException
-
getAttributes
Deprecated.- Throws:
MFParseException
-
getAttribute
Deprecated.- Throws:
MFParseException
-
getReservedBody
Deprecated.- Throws:
MFParseException
-
getIdentifier
Deprecated.- Throws:
MFParseException
-
getOptions
Deprecated.- Throws:
MFParseException
-
getOption
Deprecated.- Throws:
MFParseException
-
getLiteralOrVariableRef
Deprecated.- Throws:
MFParseException
-
getLiteral
Deprecated.- Throws:
MFParseException
-
getVariableRef
Deprecated.- Throws:
MFParseException
-
getQuotedLiteral
Deprecated.- Throws:
MFParseException
-
getUnQuotedLiteral
Deprecated.- Throws:
MFParseException
-
getNumberLiteral
Deprecated. -
skipMandatoryWhitespaces
Deprecated.- Throws:
MFParseException
-
skipOptionalWhitespaces
private void skipOptionalWhitespaces()Deprecated. -
skipWhitespaces
private int skipWhitespaces()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
Deprecated.- Throws:
MFParseException
-
checkCondition
Deprecated.- Throws:
MFParseException
-
error
Deprecated.- Throws:
MFParseException
-
peekWithRegExp
Deprecated.
-