com.google.gwt.uibinder.rebind
Class Tokenator

java.lang.Object
  extended by 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.
 
Constructor Summary
Tokenator()
           
 
Method Summary
 java.lang.String detokenate(java.lang.String betokened)
           
static java.lang.String detokenate(java.lang.String betokened, Tokenator.Resolver resolver)
           
static boolean hasToken(java.lang.String s)
           
 java.lang.String nextToken(java.lang.String resolved)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tokenator

public Tokenator()
Method Detail

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)