Groovy Documentation

lsst.gruth.grutils
[Groovy] Enum Tracer

java.lang.Object
  lsst.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.

Authors:
bamade


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

NODE_BUILD

Tracer NODE_BUILD


NODE_CALLS

Tracer NODE_CALLS


NODE_EVAL

Tracer NODE_EVAL


NODE_MODIF

Tracer NODE_MODIF


POST

Tracer POST


PRE

Tracer PRE


TEST_BUILD

Tracer TEST_BUILD


TEST_EVAL

Tracer TEST_EVAL


XPECT

Tracer XPECT


 
Property Detail

bitPosition

int bitPosition
each enum member has a corresponding bit in a bit pattern. this bit is build according to the ordinal of the value.


logger

static java.util.logging.Logger logger


traceMask

static final int traceMask
according to the value of 'gruth.traces' this mask is use to pick up the corresponding calls to trace


 
Constructor Detail

Tracer

Tracer()


 
Method Detail

trace

static void trace(Tracer tracer, java.lang.Object... args)


valueOf

Tracer valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.


values

Tracer[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation