Class NoTracer
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.expressions.AbstractTracerBase
-
- net.ssehub.easy.instantiation.core.model.expressions.NoTracer
-
- net.ssehub.easy.instantiation.core.model.common.NoTracer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNoTracer()Prevents external instantiation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenable(boolean enable)Enables or disables the tracer.voidtrace(java.lang.String text)Emits a trace string.voidtraceError(java.lang.String text)Emits an error trace string.voidtraceExecutionException(VilException exception)Traces a top-level execution exception, i.e., execution a VIL script or template failed.voidtraceWarning(java.lang.String text)Emits a warning trace string.voidvalueDefined(VariableDeclaration var, FieldDescriptor field, java.lang.Object value)Is called when a value of a variable is defined.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.expressions.NoTracer
failedAt, visitedCallExpression, visitingCallExpression
-
Methods inherited from class net.ssehub.easy.instantiation.core.model.expressions.AbstractTracerBase
getLocale, getRuntimeEnvironment, setLocale, setRuntimeEnvironment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.expressions.ITracer
failedAt, getLocale, getRuntimeEnvironment, setLocale, setRuntimeEnvironment, visitedCallExpression, visitingCallExpression
-
-
-
-
Method Detail
-
trace
public void trace(java.lang.String text)
Description copied from interface:ITracerEmits a trace string.
-
valueDefined
public void valueDefined(VariableDeclaration var, FieldDescriptor field, java.lang.Object value)
Description copied from interface:ITracerIs called when a value of a variable is defined.- Specified by:
valueDefinedin interfaceITracer- Parameters:
var- the modified variablefield- the field invar, may be nullvalue- the actual value
-
traceExecutionException
public void traceExecutionException(VilException exception)
Description copied from interface:ITracerTraces a top-level execution exception, i.e., execution a VIL script or template failed.- Specified by:
traceExecutionExceptionin interfaceITracer- Parameters:
exception- the exception
-
enable
public void enable(boolean enable)
Description copied from interface:ITracerEnables or disables the tracer. By default, a tracer is enabled.
-
traceWarning
public void traceWarning(java.lang.String text)
Description copied from interface:ITracerEmits a warning trace string.- Specified by:
traceWarningin interfaceITracer- Parameters:
text- the text to be emitted
-
traceError
public void traceError(java.lang.String text)
Description copied from interface:ITracerEmits an error trace string.- Specified by:
traceErrorin interfaceITracer- Parameters:
text- the text to be emitted
-
-