IcuParser class

This defines a grammar for ICU MessageFormat syntax. Usage is new IcuParser.message.parse(

Constructors

IcuParser()

Properties

closeCurly → Parser
no setter
comma → Parser
no setter
contents → Parser
no setter
curly → Parser
no setter
empty → Parser
no setter
gender → Parser
no setter
genderClause → Parser
no setter
genderKeyword → Parser
no setter
generalSelect → Parser
no setter
hashCode int
The hash code for this object.
no setterinherited
icuEscapedText → Parser
no setter
icuText → Parser
no setter
id → Parser
no setter
interiorText ↔ SettableParser
getter/setter pair
intlGender → Parser
no setter
intlPlural → Parser
no setter
intlSelect → Parser
no setter
message → Parser
The primary entry point for parsing. Accepts a string and produces a parsed representation of it as a Message.
no setter
messageText → Parser
no setter
nonIcuMessage → Parser
Represents an ordinary message, i.e. not a plural/gender/select, although it may have parameters.
no setter
nonIcuMessageText → Parser
no setter
normalText → Parser
no setter
notAllowedInIcuText → Parser
no setter
notAllowedInNormalText → Parser
no setter
number → Parser
no setter
openCurly → Parser
no setter
parameter → Parser
no setter
plural → Parser
no setter
pluralClause → Parser
no setter
pluralKeyword → Parser
no setter
pluralLiteral → Parser
no setter
pluralOrGenderOrSelect → Parser
no setter
preface → Parser
no setter
quotedCurly → Parser
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectClause → Parser
no setter
selectLiteral → Parser
no setter
simpleText → Parser
no setter
stuff → Parser
no setter
twoSingleQuotes → Parser
no setter

Methods

asKeywords(List<String> list) → Parser
Given a list of possible keywords, return a rule that accepts any of them. e.g., given "male", "female", "other", accept any of them.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited