code: final public Boolean checkPositionType(String type) {
      if (tokenPosition == null) {
        return false;
      } else {
        return tokenPosition.checkType(type);
      }
    }
docs: Check position type.
  
  @param type the type
  @return the boolean