Saturday, February 26, 2011

Re: PlaceTokenizer with no (trailing) token

Curious, that. You could return "".

/dmc

On Sat, Feb 26, 2011 at 4:12 AM, George Moschovitis <george.moschovitis@gmail.com> wrote:
Is there a way to implement a place with no token?

ie, have a tokenizer like this:

@Prefix("prefix")
public class MyTokenizer ... {
  ...
  @Override
  public String getToken(P place) {
    return null; 
  }
}

this one generates tokens like this:

#prefix:null

is there a way to get rid of ':null' ?

thanks,
-g.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment