ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

javafe.util
Interface ErrorSet.Reporter

All Known Implementing Classes:
ErrorSet.StandardReporter
Enclosing interface:
ErrorSet

public static interface ErrorSet.Reporter


Method Summary
 void report(int severity, int loc, int length, java.lang.String message)
          Unified interface for reporting information - all messages to the user go through this method.
 void reportAssociatedInfo(int loc)
          This method reports the location of an associated bit of information (e.g. the location of a referenced declaration) that goes with the most recent call of 'report'.
 void reportAssociatedInfo2(int loc, ClipPolicy cp)
           
 

Method Detail

report

public void report(int severity,
                   int loc,
                   int length,
                   java.lang.String message)
Unified interface for reporting information - all messages to the user go through this method.

Parameters:
severity - - the severity of the condition: 0 for information 1 for warnings, 2 for errors
loc - - the location (as in @loc(javafe.util.Location)) referred to by the message; Location.NULL if the message does not refer to any location in particular
length - - the length of the section of the line that should be high-lighted; -1 if the length is not known.
message - - the text message to be conveyed to the user

reportAssociatedInfo

public void reportAssociatedInfo(int loc)
This method reports the location of an associated bit of information (e.g. the location of a referenced declaration) that goes with the most recent call of 'report'.

Parameters:
loc - The Location of theassociated information

reportAssociatedInfo2

public void reportAssociatedInfo2(int loc,
                                  ClipPolicy cp)

ESC/Java2
© 2003,2004,2005 David Cok and Joseph Kiniry
© 2005 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

The ESC/Java2 Project Homepage