Class AbstractTracer
java.lang.Object
org.eclipse.graphiti.internal.util.AbstractTracer
Adds
entering
to allow trace entries with any kind of parameters
when a specific method is entered and exiting
to allow trace
entries with any kind of parameters when a method is exited. To create an
instance, use the static method T.racer()
from the concrete sub
classes org.eclipse.graphiti.util.T
or
org.eclipse.graphiti.ui.T
depending on the package you want to
trace.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
debug()
void
void
void
Writes a trace entry that the specified method was entered.void
void
void
void
Writes a trace entry that the specified method is about to be exited.void
Writes a trace entry that the specified method is about to be exited.final boolean
boolean
info()
void
void
void
void
static void
setDebugLogging
(boolean isDebugLogging) final void
setInfoAlwaysTrue
(boolean b) static void
setInfoLogging
(boolean isInfoLogging) void
void
void
-
Constructor Details
-
AbstractTracer
-
-
Method Details
-
setInfoLogging
public static void setInfoLogging(boolean isInfoLogging) - Parameters:
isInfoLogging
- the sIsInfoLogging to set
-
setDebugLogging
public static void setDebugLogging(boolean isDebugLogging) - Parameters:
isDebugLogging
- the sIsDebugLogging to set
-
entering
Writes a trace entry that the specified method was entered.- Parameters:
clazz
- Class of the traced methodsignature
- signature of the traced methodargs
- Arguments as object references
-
exiting
Writes a trace entry that the specified method is about to be exited.- Parameters:
clazz
- Class of the traced methodsignature
- signature of the traced method
-
exiting
Writes a trace entry that the specified method is about to be exited.- Parameters:
clazz
- Class of the traced methodsignature
- signature of the traced methodres
- Result as object reference
-
debug
public boolean debug() -
debug
-
debug
-
error
-
error
-
error
-
info
public boolean info() -
info
-
info
-
log
-
log
-
warning
-
warning
-
warning
-
getInfoAlwaysTrue
public final boolean getInfoAlwaysTrue() -
setInfoAlwaysTrue
public final void setInfoAlwaysTrue(boolean b)
-