|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.analysis.javadoc.log.JavadocMessageLogger
public class JavadocMessageLogger
Helper to collect errors, warnings and notices from the Javadoc tool.
Constructor Summary | |
---|---|
JavadocMessageLogger() Default constructor. |
|
JavadocMessageLogger(PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter) Constructor to pass pre-configured writers to the instance. |
Method Summary | |
---|---|
List<IssueMessage> |
getErrMessages() Returns the collected error messages. |
PrintWriter |
getErrWriter() Returns the writer to be notified about errors encountered by the Javadoc tool. |
List<IssueMessage> |
getNoticeMessages() Returns the collected notice messages. |
PrintWriter |
getNoticeWriter() Returns the writer to be notified about notices made by the Javadoc tool. |
int |
getReturnCode() Returns the return code reported by the Javadoc tool. |
List<IssueMessage> |
getWarnMessages() Returns the collected warn messages. |
PrintWriter |
getWarnWriter() Returns the writer to be notified about warnings encountered by the Javadoc tool. |
boolean |
hasMessages(boolean considerNoticeMessages) Checks if there are messages logged. |
void |
setReturnCode(int returnCode) Sets the return code reported by the Javadoc tool. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavadocMessageLogger(PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter)
errWriter
- the writer to be notified about errors encountered by the Javadoc tool.
warnWriter
- the writer to be notified about warnings encountered by the Javadoc tool.
noticeWriter
- the writer to be notified about notices made by the Javadoc tool.
public JavadocMessageLogger()
Method Detail |
---|
public int getReturnCode()
public void setReturnCode(int returnCode)
returnCode
- the return code reported by the Javadoc tool.
public PrintWriter getErrWriter()
public PrintWriter getWarnWriter()
public PrintWriter getNoticeWriter()
public List<IssueMessage> getErrMessages()
public List<IssueMessage> getWarnMessages()
public List<IssueMessage> getNoticeMessages()
public boolean hasMessages(boolean considerNoticeMessages)
considerNoticeMessages
- if set to
true
notice messages are checked, too. If
false
only error and warn messages are checked to be not empty.
true
if at least one message has been logged,
false
otherwise.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |