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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandebug()voidvoidvoidWrites a trace entry that the specified method was entered.voidvoidvoidvoidWrites a trace entry that the specified method is about to be exited.voidWrites a trace entry that the specified method is about to be exited.final booleanbooleaninfo()voidvoidvoidvoidstatic voidsetDebugLogging(boolean isDebugLogging) final voidsetInfoAlwaysTrue(boolean b) static voidsetInfoLogging(boolean isInfoLogging) voidvoidvoid
-
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)
-