|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpolyglot.main.Report
Class used for reporting debug messages.
Field Summary | |
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
|
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 |
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 |
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 |
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 Summary | |
Report()
|
Method Summary | |
static void |
addTopic(java.lang.String topic,
int level)
|
protected static int |
level(java.lang.String name)
|
static void |
report(int level,
java.lang.String message)
This is the standard way to report debugging information in the compiler. |
static boolean |
should_report(java.util.Collection 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Collection topics
public static java.util.Stack should_report
protected static java.util.Map reportTopics
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 java.lang.String cfg
public static java.lang.String context
public static java.lang.String dataflow
public static java.lang.String errors
public static java.lang.String frontend
public static java.lang.String imports
public static java.lang.String loader
public static java.lang.String resolver
public static java.lang.String serialize
public static java.lang.String time
public static java.lang.String types
public static java.lang.String visit
public static java.lang.String verbose
public static java.lang.String debug
Constructor Detail |
public Report()
Method Detail |
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 boolean should_report(java.util.Collection 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)
protected static int level(java.lang.String name)
public static void report(int level, java.lang.String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |