|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.scmchangelog.changelog.log.grammar.AbstractScmGrammar
org.codehaus.mojo.scmchangelog.changelog.log.grammar.AbstractRegexpScmGrammar
public abstract class AbstractRegexpScmGrammar
Abstract grammar to be used as an helper class.
| Field Summary |
|---|
| Fields inherited from interface org.codehaus.mojo.scmchangelog.changelog.log.ScmGrammar |
|---|
NEW_LINE |
| Constructor Summary | |
|---|---|
AbstractRegexpScmGrammar()
|
|
| Method Summary | |
|---|---|
protected String |
computeIssues(OperationTypeEnum type,
String expression,
List issues)
Extract all issues of same type from the SVN comment. |
Message |
extractMessage(String content)
Extracts the message (list of issues)from the comment. |
abstract Matcher |
getAddCleaner(String expression)
Getter for the regexp matcher to clean the comments of the ADD issues. |
abstract Matcher |
getAddMatcher(String expression)
Getter for the regexp matcher to find the comments of the ADD issues. |
protected Matcher |
getCleaner(OperationTypeEnum type,
String expression)
Return the regexp used for removing grammar elements from the comments. |
protected Matcher |
getFinder(OperationTypeEnum type,
String expression)
Return the regexp used for finding grammar elements from the comments. |
abstract Matcher |
getFixCleaner(String expression)
Getter for the regexp matcher to clean the comments of the FIX issues. |
abstract Matcher |
getFixMatcher(String expression)
Getter for the regexp matcher to find the comments of the FIX issues. |
String |
getIssueSeparator()
Returns the String to be inserted between each issue comment. |
abstract Matcher |
getRemoveCleaner(String expression)
Getter for the regexp matcher to clean the comments of the REMOVE issues. |
abstract Matcher |
getRemoveMatcher(String expression)
Getter for the regexp matcher to find the comments of the REMOVE issues. |
abstract Matcher |
getUpdateCleaner(String expression)
Getter for the regexp matcher to clean the comments of the UPDATE issues. |
abstract Matcher |
getUpdateMatcher(String expression)
Getter for the regexp matcher to find the comments of the UPDATE issues. |
boolean |
hasMessage(String content)
Indicates if the content respects the grammar used to extract issues. |
| Methods inherited from class org.codehaus.mojo.scmchangelog.changelog.log.grammar.AbstractScmGrammar |
|---|
removeComments |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRegexpScmGrammar()
| Method Detail |
|---|
public Message extractMessage(String content)
content - the comment of the log entry.
Messagepublic boolean hasMessage(String content)
content - the content to be checked
protected String computeIssues(OperationTypeEnum type,
String expression,
List issues)
type - : type of issue to be extracted.expression - : svn comment.issues - : the list of issues already found.
protected Matcher getCleaner(OperationTypeEnum type,
String expression)
type - : type of issue to be extracted.expression - : svn comment.
protected Matcher getFinder(OperationTypeEnum type,
String expression)
type - : type of issue to be extracted.expression - : svn comment.
public String getIssueSeparator()
public abstract Matcher getFixCleaner(String expression)
expression - the regexp for cleaning the comments of the FIX issues.
public abstract Matcher getUpdateCleaner(String expression)
expression - the regexp for cleaning the comments of the UPDATE issues.
public abstract Matcher getAddCleaner(String expression)
expression - the regexp for cleaning the comments of the ADD issues.
public abstract Matcher getRemoveCleaner(String expression)
expression - the regexp for cleaning the comments of the REMOVE issues.
public abstract Matcher getFixMatcher(String expression)
expression - the regexp for finding the comments of the FIX issues.
public abstract Matcher getAddMatcher(String expression)
expression - the regexp for finding the comments of the ADD issues.
public abstract Matcher getRemoveMatcher(String expression)
expression - the regexp for finding the comments of the REMOVE issues.
public abstract Matcher getUpdateMatcher(String expression)
expression - the regexp for finding the comments of the UPDATE issues.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||