code: public char getToken() {
      int index = getPosition();
      String document = getDocument();
      return index >= document.length() ? NodewalkerCodec.END_OF_STRING : document.charAt(index);
    }
docs: Gets token.
  
  @return the token