public class

ProblemReport

extends Object
java.lang.Object
   ↳ com.google.gwt.user.rebind.rpc.ProblemReport

Class Overview

A collection of reported problems; these are accumulated during the SerializableTypeOracleBuilder's isSerializable analysis, and what to do about the problems is decided only later.

Summary

Nested Classes
enum ProblemReport.Priority Priority of problems. 
class ProblemReport.Problem An individual report, which may require multiple entries (expressed as logs under a branchpoint), but relates to an individual issue. 
Public Constructors
ProblemReport()
Creates a new, empty, context-less ProblemReport.
Public Methods
ProblemReport.Problem add(JClassType type, String message, ProblemReport.Priority priority, String... extraLines)
Adds a problem for a given type.
String getWorstMessageForType(JClassType type)
boolean hasFatalProblems()
Were any problems reported as "fatal"?
void report(TreeLogger logger, TreeLogger.Type problemLevel, TreeLogger.Type auxLevel)
Reports all problems to the logger supplied, at the log level supplied.
void reportFatalProblems(TreeLogger logger, TreeLogger.Type level)
Reports only urgent problems to the logger supplied, at the log level supplied.
void setContextType(JClassType newContext)
Sets the context type currently being analyzed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProblemReport ()

Creates a new, empty, context-less ProblemReport.

Public Methods

public ProblemReport.Problem add (JClassType type, String message, ProblemReport.Priority priority, String... extraLines)

Adds a problem for a given type. This also sorts the problems into collections by priority.

Parameters
type the problematic type
message the description of the problem
priority priority of the problem.
extraLines additional continuation lines for the message, usually for additional explanations.

public String getWorstMessageForType (JClassType type)

public boolean hasFatalProblems ()

Were any problems reported as "fatal"?

public void report (TreeLogger logger, TreeLogger.Type problemLevel, TreeLogger.Type auxLevel)

Reports all problems to the logger supplied, at the log level supplied. The problems are assured of being reported in lexographic order of type names.

Parameters
logger logger to receive problem reports
problemLevel severity level at which to report problems.
auxLevel severity level at which to report any auxiliary messages.

public void reportFatalProblems (TreeLogger logger, TreeLogger.Type level)

Reports only urgent problems to the logger supplied, at the log level supplied. The problems are assured of being reported in lexographic order of type names.

Parameters
logger logger to receive problem reports
level severity level at which to report problems.

public void setContextType (JClassType newContext)

Sets the context type currently being analyzed. Problems found will include reference to this context, until reset with another call to this method. Context may be canceled with a null value here.

Parameters
newContext the type under analysis