Package com.google.javascript.jscomp
Interface JsMessage.Part
-
- All Known Implementing Classes:
JsMessage.PlaceholderReference
,JsMessage.StringPart
- Enclosing class:
- JsMessage
public static interface JsMessage.Part
Represents part of a message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPlaceholderName()
Gets the name of the placeholder.java.lang.String
getString()
Gets the literal string for this message part.boolean
isPlaceholder()
True for placeholders, false for literal string parts.
-
-
-
Method Detail
-
isPlaceholder
boolean isPlaceholder()
True for placeholders, false for literal string parts.
-
getPlaceholderName
java.lang.String getPlaceholderName()
Gets the name of the placeholder.- Returns:
- the name for a placeholder
- Throws:
java.lang.UnsupportedOperationException
- if this is not aJsMessage.PlaceholderReference
.
-
getString
java.lang.String getString()
Gets the literal string for this message part.- Returns:
- the literal string for
JsMessage.StringPart
. - Throws:
java.lang.UnsupportedOperationException
- if this is not aJsMessage.StringPart
.
-
-