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 int
Deprecated.private final InputSource
Deprecated.private static final Pattern
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkCondition
(boolean condition, String message) Deprecated.private void
Deprecated.private MFDataModel.Attribute
Deprecated.private List
<MFDataModel.Attribute> Deprecated.private MFDataModel.Message
Deprecated.private MFDataModel.Declaration
Deprecated.private MFDataModel.Function
getFunction
(boolean whitespaceRequired) Deprecated.private MFDataModel.Expression
Deprecated.private String
Deprecated.private MFDataModel.LiteralOrCatchallKey
getKey
(boolean requireSpaces) Deprecated.private MFDataModel.Literal
getLiteral
(boolean normalize) Deprecated.private MFDataModel.Expression
Deprecated.private MFDataModel.LiteralOrVariableRef
Deprecated.private MFDataModel.Markup
Deprecated.private MFDataModel.Function
Deprecated.private MFDataModel.SelectMessage
getMatch
(List<MFDataModel.Declaration> declarations) Deprecated.private String
getName()
Deprecated.private MFDataModel.Literal
Deprecated.private MFDataModel.Option
Deprecated.private Map
<String, MFDataModel.Option> Deprecated.private MFDataModel.Pattern
Deprecated.private MFDataModel.PatternPart
Deprecated.private MFDataModel.Expression
Deprecated.private MFDataModel.Literal
getQuotedLiteral
(boolean normalize) Deprecated.private MFDataModel.Pattern
Deprecated.private String
getText()
Deprecated.private MFDataModel.Literal
getUnQuotedLiteral
(boolean normalize) Deprecated.private MFDataModel.VariableExpression
Deprecated.private MFDataModel.VariableRef
Deprecated.private MFDataModel.Variant
Deprecated.static MFDataModel.Message
Deprecated.This API is for technology preview only.private MFDataModel.Message
Deprecated.private String
peekWithRegExp
(Pattern pattern) Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.private int
Deprecated.
-
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 2
syntax 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
-
getFunction
Deprecated.- Throws:
MFParseException
-
getMarkupFunction
Deprecated.- Throws:
MFParseException
-
getLiteralExpression
Deprecated.- Throws:
MFParseException
-
getVariableExpression
Deprecated.- Throws:
MFParseException
-
getFunctionExpression
Deprecated.- Throws:
MFParseException
-
getMarkup
Deprecated.- Throws:
MFParseException
-
getAttributes
Deprecated.- Throws:
MFParseException
-
getAttribute
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. -
skipRequiredWhitespaces
Deprecated.- Throws:
MFParseException
-
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
Deprecated.- Throws:
MFParseException
-
checkCondition
Deprecated.- Throws:
MFParseException
-
error
Deprecated.- Throws:
MFParseException
-
peekWithRegExp
Deprecated.
-