Package com.google.javascript.jscomp
Interface IcuTemplateDefinition
-
public interface IcuTemplateDefinition
Contains aJsMessage
representing an ICU template message and information about thegoog.i18n.messages.declareIcuTemplate()
call from which it was extracted.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsMessage
getMessage()
The JsMessage object built from the `declareIcuTemplate()` call.Node
getMessageNode()
The RHS node of the message assignment statement.Node
getTemplateTextNode()
The Node representing the message text template.
-
-
-
Method Detail
-
getMessage
JsMessage getMessage()
The JsMessage object built from the `declareIcuTemplate()` call.
-
getMessageNode
Node getMessageNode()
The RHS node of the message assignment statement.e.g. The
declareIcuTemplate()
call in:const MSG_HELLO = declareIcuTemplate( 'Hello, {NAME}.', { description: 'A greeting', example: { 'NAME': 'Jane' });
-
getTemplateTextNode
Node getTemplateTextNode()
The Node representing the message text template.This node may be a literal string or a concatenation of literal strings.
-
-