com.google.gwt.uibinder.rebind
Class Tokenator
java.lang.Object
com.google.gwt.uibinder.rebind.Tokenator
public class Tokenator
- extends java.lang.Object
Methods to dispense unique text tokens to be stitched into text, and
to help replace the tokens with arbitrary content. Multiple tokenators
can be used across the same body of text without fear of the tokens they
vend colliding with each other.
|
Nested Class Summary |
static interface |
Tokenator.Resolver
Resolves a token to its literal value. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tokenator
public Tokenator()
detokenate
public static java.lang.String detokenate(java.lang.String betokened,
Tokenator.Resolver resolver)
hasToken
public static boolean hasToken(java.lang.String s)
detokenate
public java.lang.String detokenate(java.lang.String betokened)
nextToken
public java.lang.String nextToken(java.lang.String resolved)