Class InterpreterPipe<T>
java.lang.Object
com.google.gwt.uibinder.elementparsers.InterpreterPipe<T>
- Type Parameters:
T- The type returned by all members of the pipe
- All Implemented Interfaces:
com.google.gwt.uibinder.rebind.XMLElement.Interpreter<T>,com.google.gwt.uibinder.rebind.XMLElement.PostProcessingInterpreter<T>
class InterpreterPipe<T>
extends Object
implements com.google.gwt.uibinder.rebind.XMLElement.PostProcessingInterpreter<T>
Pairs
XMLElement.Interpreter instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinterpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) Interpreters are fired in the order they were handed to the constructor.static <T> InterpreterPipe<T>newPipe(com.google.gwt.uibinder.rebind.XMLElement.Interpreter<T>... pipes) postProcess(String consumedText) Called by variousXMLElementconsumeInner*() methods after all elements have been handed tointerpretElement(com.google.gwt.uibinder.rebind.XMLElement).
-
Constructor Details
-
InterpreterPipe
InterpreterPipe()
-
-
Method Details
-
newPipe
public static <T> InterpreterPipe<T> newPipe(com.google.gwt.uibinder.rebind.XMLElement.Interpreter<T>... pipes) -
add
-
interpretElement
public T interpretElement(com.google.gwt.uibinder.rebind.XMLElement elem) throws UnableToCompleteException Interpreters are fired in the order they were handed to the constructor. If an interpreter gives a non-null result, downstream interpreters don't fire.- Specified by:
interpretElementin interfacecom.google.gwt.uibinder.rebind.XMLElement.Interpreter<T>- Returns:
- The T or null returned by the last pipelined interpreter to run
- Throws:
UnableToCompleteException- on error
-
postProcess
Called by variousXMLElementconsumeInner*() methods after all elements have been handed tointerpretElement(com.google.gwt.uibinder.rebind.XMLElement). Passes the text to be post processed to each pipe member that is instanceofXMLElement.PostProcessingInterpreter.- Specified by:
postProcessin interfacecom.google.gwt.uibinder.rebind.XMLElement.PostProcessingInterpreter<T>- Throws:
UnableToCompleteException
-