|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object polyglot.main.Report
public class 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 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 final java.util.Collection topics
public static final java.util.Stack should_report
protected static final java.util.Map reportTopics
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
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 |