code: public static boolean isComment(String sql)
      {
          Matcher commentMatcher = PAT_SINGLE_LINE_COMMENT.matcher(sql);
          return commentMatcher.matches();
      }
docs: Check if a SQL string is a comment.
  @param sql  SQL string
  @return     true if it's a comment