Top Inners Fields Constructors Methods
com.ibm.icu.message2

pack-priv Class Mf2Serializer

extends Object
implements EventHandler
Class Inheritance
All Implemented Interfaces
com.ibm.icu.message2.Mf2Parser.EventHandler
Imports
java.util.ArrayList, .List, com.ibm.icu.message2.Mf2DataModel.Expression, .Mf2DataModel.Pattern, .Mf2DataModel.SelectorKeys, .Mf2DataModel.Text, .Mf2DataModel.Value, .Mf2Parser.EventHandler, .Mf2Serializer.Token.Type

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private String
private final List<Mf2Serializer.Token>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv Mf2DataModel
build()

Deprecated as a consequence of Mf2DataModel being deprecated.
pack-priv static String
dataModelToString(Mf2DataModel dataModel)

Deprecated as a consequence of Mf2DataModel being deprecated.
public void
private int
parseDeclaration(int startToken, Mf2Serializer.Declaration declaration)

private Mf2Serializer.ParseResult<Mf2DataModel.Expression>
parseExpression(int startToken)

private Mf2DataModel
parseMessage()

Deprecated as a consequence of Mf2DataModel being deprecated.
private int
parseOptions(int startToken, Mf2Serializer.Option option)

private Mf2Serializer.ParseResult<Mf2DataModel.Pattern>
parsePattern(int startToken)

private Mf2Serializer.ParseResult<List<Mf2DataModel.Expression>>
parseSelector(int startToken)

private Mf2Serializer.ParseResult<Mf2Serializer.Variant>
parseVariant(int startToken)

public void
public void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

inputback to summary
private String input
tokensback to summary
private final List<Mf2Serializer.Token> tokens

Constructor Detail

Mf2Serializerback to summary
pack-priv Mf2Serializer()

Method Detail

buildback to summary
pack-priv Mf2DataModel build()

Deprecated

as a consequence of Mf2DataModel being deprecated. See corresponding docs for further information.

dataModelToStringback to summary
pack-priv static String dataModelToString(Mf2DataModel dataModel)

Deprecated

as a consequence of Mf2DataModel being deprecated. See corresponding docs for further information.

endNonterminalback to summary
public void endNonterminal(String name, int end)

Implements com.ibm.icu.message2.Mf2Parser.EventHandler.endNonterminal.

Annotations
@Override
parseDeclarationback to summary
private int parseDeclaration(int startToken, Mf2Serializer.Declaration declaration)
parseExpressionback to summary
private Mf2Serializer.ParseResult<Mf2DataModel.Expression> parseExpression(int startToken)
parseMessageback to summary
private Mf2DataModel parseMessage()

Deprecated

as a consequence of Mf2DataModel being deprecated. See corresponding docs for further information.

parseOptionsback to summary
private int parseOptions(int startToken, Mf2Serializer.Option option)
parsePatternback to summary
private Mf2Serializer.ParseResult<Mf2DataModel.Pattern> parsePattern(int startToken)
parseSelectorback to summary
private Mf2Serializer.ParseResult<List<Mf2DataModel.Expression>> parseSelector(int startToken)
parseVariantback to summary
private Mf2Serializer.ParseResult<Mf2Serializer.Variant> parseVariant(int startToken)
resetback to summary
public void reset(CharSequence input)

Implements com.ibm.icu.message2.Mf2Parser.EventHandler.reset.

Annotations
@Override
startNonterminalback to summary
public void startNonterminal(String name, int begin)

Implements com.ibm.icu.message2.Mf2Parser.EventHandler.startNonterminal.

Annotations
@Override
terminalback to summary
public void terminal(String name, int begin, int end)

Implements com.ibm.icu.message2.Mf2Parser.EventHandler.terminal.

Annotations
@Override
whitespaceback to summary
public void whitespace(int begin, int end)

Implements com.ibm.icu.message2.Mf2Parser.EventHandler.whitespace.

Annotations
@Override
com.ibm.icu.message2 back to summary

pack-priv Class Mf2Serializer.Declaration

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Mf2DataModel.Expression
expr

Deprecated as a consequence of Mf2DataModel.Expression being deprecated.
pack-priv String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exprback to summary
pack-priv Mf2DataModel.Expression expr

Deprecated

as a consequence of Mf2DataModel.Expression being deprecated. See corresponding docs for further information.

variableNameback to summary
pack-priv String variableName

Constructor Detail

Declarationback to summary
pack-priv Declaration()
com.ibm.icu.message2 back to summary

pack-priv Class Mf2Serializer.Option

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv String
pack-priv Mf2DataModel.Value
value

Deprecated as a consequence of Mf2DataModel.Value being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
pack-priv String name
valueback to summary
pack-priv Mf2DataModel.Value value

Deprecated

as a consequence of Mf2DataModel.Value being deprecated. See corresponding docs for further information.

Constructor Detail

Optionback to summary
pack-priv Option()
com.ibm.icu.message2 back to summary

pack-priv Class Mf2Serializer.ParseResult<T>

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final T
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
ParseResult(int skipLen, T resultValue)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

resultValueback to summary
pack-priv final T resultValue
skipLenback to summary
pack-priv final int skipLen

Constructor Detail

ParseResultback to summary
public ParseResult(int skipLen, T resultValue)
com.ibm.icu.message2 back to summary

pack-priv Class Mf2Serializer.Token

extends Object
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum
pack-priv static enum

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int
private final String
pack-priv final Mf2Serializer.Token.Kind
pack-priv final String
private final Mf2Serializer.Token.Type

Constructor Summary

AccessConstructor and Description
pack-priv
Token(Mf2Serializer.Token.Kind kind, String name, int begin, int end, String input)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
pack-priv boolean
pack-priv boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

beginback to summary
pack-priv final int begin
endback to summary
pack-priv final int end
inputback to summary
private final String input
kindback to summary
pack-priv final Mf2Serializer.Token.Kind kind
nameback to summary
pack-priv final String name
typeback to summary
private final Mf2Serializer.Token.Type type

Constructor Detail

Tokenback to summary
pack-priv Token(Mf2Serializer.Token.Kind kind, String name, int begin, int end, String input)

Method Detail

isEndback to summary
pack-priv boolean isEnd()
isStartback to summary
pack-priv boolean isStart()
isTerminalback to summary
pack-priv boolean isTerminal()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
com.ibm.icu.message2 back to summary

pack-priv final Enum Mf2Serializer.Token.Kind

extends Enum<Mf2Serializer.Token.Kind>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Mf2Serializer.Token.Kind
public static final Mf2Serializer.Token.Kind
public static final Mf2Serializer.Token.Kind

Constructor Summary

AccessConstructor and Description
private
Kind()

Method Summary

Modifier and TypeMethod and Description
public static Mf2Serializer.Token.Kind
public static Mf2Serializer.Token.Kind[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

NONTERMINAL_ENDback to summary
public static final Mf2Serializer.Token.Kind NONTERMINAL_END
NONTERMINAL_STARTback to summary
public static final Mf2Serializer.Token.Kind NONTERMINAL_START
TERMINALback to summary
public static final Mf2Serializer.Token.Kind TERMINAL

Constructor Detail

Kindback to summary
private Kind()

Method Detail

valueOfback to summary
public static Mf2Serializer.Token.Kind valueOf(String name)
valuesback to summary
public static Mf2Serializer.Token.Kind[] values()
com.ibm.icu.message2 back to summary

pack-priv final Enum Mf2Serializer.Token.Type

extends Enum<Mf2Serializer.Token.Type>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type
public static final Mf2Serializer.Token.Type

Constructor Summary

AccessConstructor and Description
private
Type()

Method Summary

Modifier and TypeMethod and Description
public static Mf2Serializer.Token.Type
public static Mf2Serializer.Token.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DECLARATIONback to summary
public static final Mf2Serializer.Token.Type DECLARATION
DEFAULTback to summary
public static final Mf2Serializer.Token.Type DEFAULT
EXPRESSIONback to summary
public static final Mf2Serializer.Token.Type EXPRESSION
FUNCTIONback to summary
public static final Mf2Serializer.Token.Type FUNCTION
IGNOREback to summary
public static final Mf2Serializer.Token.Type IGNORE
LITERALback to summary
public static final Mf2Serializer.Token.Type LITERAL
MESSAGEback to summary
public static final Mf2Serializer.Token.Type MESSAGE
NAMEback to summary
public static final Mf2Serializer.Token.Type NAME
NMTOKENback to summary
public static final Mf2Serializer.Token.Type NMTOKEN
OPERANDback to summary
public static final Mf2Serializer.Token.Type OPERAND
OPTIONback to summary
public static final Mf2Serializer.Token.Type OPTION
PATTERNback to summary
public static final Mf2Serializer.Token.Type PATTERN
PLACEHOLDERback to summary
public static final Mf2Serializer.Token.Type PLACEHOLDER
SELECTORback to summary
public static final Mf2Serializer.Token.Type SELECTOR
TEXTback to summary
public static final Mf2Serializer.Token.Type TEXT
VARIABLEback to summary
public static final Mf2Serializer.Token.Type VARIABLE
VARIANTback to summary
public static final Mf2Serializer.Token.Type VARIANT
VARIANTKEYback to summary
public static final Mf2Serializer.Token.Type VARIANTKEY

Constructor Detail

Typeback to summary
private Type()

Method Detail

valueOfback to summary
public static Mf2Serializer.Token.Type valueOf(String name)
valuesback to summary
public static Mf2Serializer.Token.Type[] values()
com.ibm.icu.message2 back to summary

pack-priv Class Mf2Serializer.Variant

extends Object
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final Mf2DataModel.Pattern
pattern

Deprecated as a consequence of Mf2DataModel.Pattern being deprecated.
private final Mf2DataModel.SelectorKeys
selectorKeys

Deprecated as a consequence of Mf2DataModel.SelectorKeys being deprecated.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Mf2Serializer.Variant.Builder

Returns:

the Builder.
builder
()

Creates a builder.

public Mf2DataModel.Pattern
getPattern()

Deprecated as a consequence of Mf2DataModel.Pattern being deprecated.
public Mf2DataModel.SelectorKeys
getSelectorKeys()

Deprecated as a consequence of Mf2DataModel.SelectorKeys being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

patternback to summary
private final Mf2DataModel.Pattern pattern

Deprecated

as a consequence of Mf2DataModel.Pattern being deprecated. See corresponding docs for further information.

selectorKeysback to summary
private final Mf2DataModel.SelectorKeys selectorKeys

Deprecated

as a consequence of Mf2DataModel.SelectorKeys being deprecated. See corresponding docs for further information.

Constructor Detail

Variantback to summary
private Variant(Mf2Serializer.Variant.Builder builder)

Method Detail

builderback to summary
public static Mf2Serializer.Variant.Builder builder()

Creates a builder.

Returns:Mf2Serializer.Variant.Builder

the Builder.

getPatternback to summary
public Mf2DataModel.Pattern getPattern()

Deprecated

as a consequence of Mf2DataModel.Pattern being deprecated. See corresponding docs for further information.

getSelectorKeysback to summary
public Mf2DataModel.SelectorKeys getSelectorKeys()

Deprecated

as a consequence of Mf2DataModel.SelectorKeys being deprecated. See corresponding docs for further information.

com.ibm.icu.message2 back to summary

public Class Mf2Serializer.Variant.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Mf2DataModel.Pattern
pattern

Deprecated as a consequence of Mf2DataModel.Pattern being deprecated.
private final Mf2DataModel.SelectorKeys.Builder
selectorKeys

Deprecated as a consequence of Mf2DataModel.SelectorKeys.Builder being deprecated.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Mf2Serializer.Variant.Builder
addSelectorKey(String selectorKey)

public Mf2Serializer.Variant
public Mf2Serializer.Variant.Builder
setPattern(Mf2DataModel.Pattern pattern)

Deprecated as a consequence of Mf2DataModel.Pattern being deprecated.
public Mf2Serializer.Variant.Builder
setSelectorKeys(Mf2DataModel.SelectorKeys selectorKeys)

Deprecated as a consequence of Mf2DataModel.SelectorKeys being deprecated.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

patternback to summary
private Mf2DataModel.Pattern pattern

Deprecated

as a consequence of Mf2DataModel.Pattern being deprecated. See corresponding docs for further information.

selectorKeysback to summary
private final Mf2DataModel.SelectorKeys.Builder selectorKeys

Deprecated

as a consequence of Mf2DataModel.SelectorKeys.Builder being deprecated. See corresponding docs for further information.

Constructor Detail

Builderback to summary
private Builder()

Method Detail

addSelectorKeyback to summary
public Mf2Serializer.Variant.Builder addSelectorKey(String selectorKey)
buildback to summary
public Mf2Serializer.Variant build()
setPatternback to summary
public Mf2Serializer.Variant.Builder setPattern(Mf2DataModel.Pattern pattern)

Deprecated

as a consequence of Mf2DataModel.Pattern being deprecated. See corresponding docs for further information.

setSelectorKeysback to summary
public Mf2Serializer.Variant.Builder setSelectorKeys(Mf2DataModel.SelectorKeys selectorKeys)

Deprecated

as a consequence of Mf2DataModel.SelectorKeys being deprecated. See corresponding docs for further information.