public class ParserUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
appendOrAddNewComment(MailComment comment,
java.util.List<MailComment> comments)
When parsing mail content, we need to append comments prematurely since we are parsing
block-by-block and never know what comes next.
|
static java.lang.String |
filePath(java.lang.String changeUrl,
Comment comment)
Generate the fully qualified filepath
|
static boolean |
isCommentUrl(java.lang.String str,
java.lang.String changeUrl,
Comment comment)
Check if string is an inline comment url on a patch set or the base
|
static java.lang.String |
trimQuotation(java.lang.String comment)
Trims the quotation that email clients add Example: On Sun, Nov 20, 2016 at 10:33 PM,
|
public static java.lang.String trimQuotation(java.lang.String comment)
comment
- Comment parsed from an email.public static boolean isCommentUrl(java.lang.String str, java.lang.String changeUrl, Comment comment)
public static java.lang.String filePath(java.lang.String changeUrl, Comment comment)
public static void appendOrAddNewComment(MailComment comment, java.util.List<MailComment> comments)