public class Report
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cfg
Report topics understood by the base compiler.
|
static java.lang.String |
context |
static java.lang.String |
dataflow |
static java.lang.String |
debug |
protected static ErrorQueue |
eq
Error queue to which to write messages.
|
static java.lang.String |
errors |
static java.lang.String |
frontend |
static java.lang.String |
imports |
static java.lang.String |
loader |
protected static boolean |
noReporting
Indicates if there is no reporting at all.
|
protected static java.util.Map<java.lang.String,java.lang.Integer> |
reportTopics
The topics that the user has selected to report, mapped to the level
they want to report them to.
|
static java.lang.String |
resolver |
static java.lang.String |
serialize |
static java.util.Stack<java.lang.String> |
should_report
A collection of string names of topics which we should always check
if we should report.
|
static java.lang.String |
time |
static java.util.Collection<java.lang.String> |
topics
A collection of string names of topics which can be used with the
-report command-line switch
|
static java.lang.String |
types |
static java.lang.String |
verbose |
static java.lang.String |
visit |
Constructor and Description |
---|
Report() |
Modifier and Type | Method and Description |
---|---|
static void |
addTopic(java.lang.String topic,
int level) |
static ErrorQueue |
getQueue()
Get the error queue, possibly creating it if not set.
|
protected static int |
level(java.lang.String name) |
static void |
popTopic() |
static void |
pushTopic(java.lang.String topic) |
static void |
report(int level,
java.lang.String message)
This is the standard way to report debugging information in the
compiler.
|
static void |
report(int level,
java.lang.String message,
Position pos)
This is the standard way to report debugging information in the
compiler.
|
static void |
setQueue(ErrorQueue eq)
Set the error queue.
|
static boolean |
should_report(java.util.Collection<java.lang.String> topics,
int level)
Return whether a message on
topics of obscurity
level should be reported, based on use of the
-report command-line switches given by the user. |
static boolean |
should_report(java.lang.String[] topics,
int level)
Return whether a message on
topics of obscurity
level should be reported, based on use of the
-report command-line switches given by the user. |
static boolean |
should_report(java.lang.String topic,
int level)
Return whether a message on
topic of obscurity
level should be reported, based on use of the
-report command-line switches given by the user. |
public static final java.util.Collection<java.lang.String> topics
public static final java.util.Stack<java.lang.String> should_report
protected static final java.util.Map<java.lang.String,java.lang.Integer> reportTopics
protected static ErrorQueue eq
protected static boolean noReporting
should_report
is called so often, we'll use
this flag to bypass a lot of the checking. When the options are processed,
this flag should be changed.public static final java.lang.String cfg
public static final java.lang.String context
public static final java.lang.String dataflow
public static final java.lang.String errors
public static final java.lang.String frontend
public static final java.lang.String imports
public static final java.lang.String loader
public static final java.lang.String resolver
public static final java.lang.String serialize
public static final java.lang.String time
public static final java.lang.String types
public static final java.lang.String visit
public static final java.lang.String verbose
public static final java.lang.String debug
public static boolean should_report(java.lang.String topic, int level)
topic
of obscurity
level
should be reported, based on use of the
-report command-line switches given by the user.public static boolean should_report(java.lang.String[] topics, int level)
topics
of obscurity
level
should be reported, based on use of the
-report command-line switches given by the user.public static void pushTopic(java.lang.String topic)
public static void popTopic()
public static boolean should_report(java.util.Collection<java.lang.String> topics, int level)
topics
of obscurity
level
should be reported, based on use of the
-report command-line switches given by the user.public static void addTopic(java.lang.String topic, int level)
public static ErrorQueue getQueue()
public static void setQueue(ErrorQueue eq)
protected static int level(java.lang.String name)
public static void report(int level, java.lang.String message)
public static void report(int level, java.lang.String message, Position pos)