
public abstract class PlaceholderInterpreter extends Object implements XMLElement.PostProcessingInterpreter<String>
| Modifier and Type | Field and Description |
|---|---|
protected MessageWriter |
message |
protected Tokenator |
tokenator |
protected UiBinderWriter |
uiWriter |
| Constructor and Description |
|---|
PlaceholderInterpreter(UiBinderWriter writer,
MessageWriter message) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
consumePlaceholderInnards(XMLElement elem) |
String |
interpretElement(XMLElement elem)
Given an XMLElement, return its filtered value.
|
protected String |
nextPlaceholder(String name,
String example,
String value)
To be called from
interpretElement(XMLElement). |
String |
postProcess(String consumed)
Called by various
XMLElement consumeInner*() methods after all
elements have been handed to interpretElement(com.google.gwt.uibinder.rebind.XMLElement). |
protected String |
stripTokens(String value) |
protected final UiBinderWriter uiWriter
protected final MessageWriter message
protected final Tokenator tokenator
public PlaceholderInterpreter(UiBinderWriter writer, MessageWriter message)
public String interpretElement(XMLElement elem) throws com.google.gwt.core.ext.UnableToCompleteException
XMLElement.InterpreterinterpretElement in interface XMLElement.Interpreter<String>com.google.gwt.core.ext.UnableToCompleteException - on errorpublic String postProcess(String consumed) throws com.google.gwt.core.ext.UnableToCompleteException
XMLElement consumeInner*() methods after all
elements have been handed to interpretElement(com.google.gwt.uibinder.rebind.XMLElement).
Performs escaping on the consumed text to make it safe for use as a Messages @Default value
postProcess in interface XMLElement.PostProcessingInterpreter<String>com.google.gwt.core.ext.UnableToCompleteExceptionprotected abstract String consumePlaceholderInnards(XMLElement elem) throws com.google.gwt.core.ext.UnableToCompleteException
com.google.gwt.core.ext.UnableToCompleteExceptionprotected String nextPlaceholder(String name, String example, String value)
interpretElement(XMLElement). Creates the next
placeholder in the MessageWriter we're building, and returns the
text to stand in its place.name - example - value - Copyright © 2016. All rights reserved.