|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tdk.signaturetest.errors.ErrorFormatter
com.sun.tdk.signaturetest.errors.SortedErrorFormatter
public class SortedErrorFormatter
SortedErrorFormatter formats error messages created by SignatureTest and by APIChangesTest. This class prints messages sorted error type and by name of class affected by the error.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.tdk.signaturetest.errors.ErrorFormatter |
---|
ErrorFormatter.Message |
Field Summary | |
---|---|
protected java.util.List |
failedMessages
Messages buffer. |
protected int |
tabSize
Tabulator position. |
Fields inherited from class com.sun.tdk.signaturetest.errors.ErrorFormatter |
---|
annoAdded, annoMissed, numErrors, numWarnings |
Constructor Summary | |
---|---|
SortedErrorFormatter(java.io.PrintWriter out,
boolean isv)
Assign the given PrintWriter to print error messages. |
Method Summary | |
---|---|
void |
addError(MessageType kind,
java.lang.String className,
MemberType type,
java.lang.String def,
java.lang.String tail,
MemberDescription errorObject)
Append new error message to the failedMessages buffer. |
protected java.util.Map |
getTestedsuper()
|
boolean |
isVerbose()
|
protected boolean |
msgCompare(ErrorFormatter.Message m1,
ErrorFormatter.Message m2)
|
int |
msgExclude(java.util.Map supernames)
|
void |
printErrors()
Print all error messages collected by failedMessages . |
protected void |
setTestedsuper(java.util.Map testedsuper)
|
void |
setVerbose(boolean verbose)
|
protected void |
sortErrors()
|
protected static java.lang.String |
space(char c,
int len)
Return string consisting of len copies of the symbol
c . |
void |
tested(ClassDescription tested)
|
Methods inherited from class com.sun.tdk.signaturetest.errors.ErrorFormatter |
---|
addError, createError, getNumErrors, getNumWarnings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List failedMessages
protected int tabSize
Constructor Detail |
---|
public SortedErrorFormatter(java.io.PrintWriter out, boolean isv)
Method Detail |
---|
public void tested(ClassDescription tested)
public void addError(MessageType kind, java.lang.String className, MemberType type, java.lang.String def, java.lang.String tail, MemberDescription errorObject)
failedMessages
buffer.
addError
in class ErrorFormatter
failedMessages
public void printErrors()
failedMessages
.
printErrors
in class ErrorFormatter
protected void sortErrors()
protected static java.lang.String space(char c, int len)
len
copies of the symbol
c
.
public int msgExclude(java.util.Map supernames)
protected boolean msgCompare(ErrorFormatter.Message m1, ErrorFormatter.Message m2)
protected java.util.Map getTestedsuper()
protected void setTestedsuper(java.util.Map testedsuper)
public boolean isVerbose()
public void setVerbose(boolean verbose)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |