|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | PROPERTY | METHOD | DETAIL: ENUM CONSTANTS | FIELD | PROPERTY | METHOD |
java.lang.Objectlsst.gruth.grutils.Tracer
enum Tracer
used to trace execution of gru. Many errors when writing a test or a node tree are just fairly hard to find: use the tracer to understand what is wrong in the interpretation of your code.
Gru internal code should use Tracer.trace at critical points.
Gru users should set a property (or environment variable) with name 'gruth.traces' the value is a comma separated list of Tracer values.Enum Constant Summary | |
---|---|
NODE_BUILD
|
|
NODE_CALLS
|
|
NODE_EVAL
|
|
NODE_MODIF
|
|
POST
|
|
PRE
|
|
TEST_BUILD
|
|
TEST_EVAL
|
|
XPECT
|
Property Summary | |
---|---|
int |
bitPosition
each enum member has a corresponding bit in a bit pattern. |
static java.util.logging.Logger |
logger
|
static int |
traceMask
according to the value of 'gruth.traces' this mask is use to pick up the corresponding calls to trace |
Constructor Summary | |
Tracer()
|
Method Summary | |
---|---|
static void
|
trace(Tracer tracer, java.lang.Object... args)
|
Tracer
|
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
Tracer[]
|
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Enum Constant Detail |
---|
Tracer NODE_BUILD
Tracer NODE_CALLS
Tracer NODE_EVAL
Tracer NODE_MODIF
Tracer POST
Tracer PRE
Tracer TEST_BUILD
Tracer TEST_EVAL
Tracer XPECT
Property Detail |
---|
int bitPosition
static java.util.logging.Logger logger
static final int traceMask
Constructor Detail |
---|
Tracer()
Method Detail |
---|
static void trace(Tracer tracer, java.lang.Object... args)
Tracer valueOf(java.lang.String name)
Tracer[] values()
Groovy Documentation