@Override
	public String toString() {
		StringBuilder s = new StringBuilder();
		s.append("[").append(kind.toString());
		if (kind.hasPayload()) {
			s.append(":").append(data);
		}
		s.append("]");
		s.append("(").append(startpos).append(",").append(endpos).append(")");
		return s.toString();
	}
Constructor for use when there is extra data to associate with a token. For example the text for an identifier
token.
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/stream/dsl/Token.java