Package com.google.javascript.jscomp
Interface IcuTemplateDefinition
public interface IcuTemplateDefinition
Contains a
JsMessage
representing an ICU template message and information about the
goog.i18n.messages.declareIcuTemplate()
call from which it was extracted.-
Method Summary
Modifier and TypeMethodDescriptionThe JsMessage object built from the `declareIcuTemplate()` call.The RHS node of the message assignment statement.The Node representing the message text template.
-
Method Details
-
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.
-