Package com.google.javascript.jscomp
Interface IcuTemplateDefinition
-
public interface IcuTemplateDefinitionContains aJsMessagerepresenting 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 JsMessagegetMessage()The JsMessage object built from the `declareIcuTemplate()` call.NodegetMessageNode()The RHS node of the message assignment statement.NodegetTemplateTextNode()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.
-
-