Interface ITracer
-
- All Known Implementing Classes:
AbstractTracerBase,AbstractVilTracer,NoTracer,NoTracer,NoTracer,NoTracer,StreamTracer,StreamTracer,StreamTracer,StreamTracer,StreamVilTracer,VilTracer
public interface ITracerDefines a tracer interface for receiving information about runtime execution, e.g., for testing.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailedAt(Expression expression)Is called when the evaluation of an expression caused an execution failure.java.util.LocalegetLocale()Returns the current locale for evaluation.RuntimeEnvironment<?,?>getRuntimeEnvironment()Returns the actual runtime environment.voidsetLocale(java.util.Locale locale)Changes the current locale.voidsetRuntimeEnvironment(RuntimeEnvironment<?,?> environment)Defines the actual runtime environment.voidvisitedCallExpression(OperationDescriptor descriptor, CallExpression.CallType callType, java.lang.Object[] args, java.lang.Object result)Is called after a resolved call expression is actually executed.voidvisitingCallExpression(OperationDescriptor descriptor, CallExpression.CallType callType, java.lang.Object[] args)Is called before a resolved call expression is actually executed.
-
-
-
Method Detail
-
visitingCallExpression
void visitingCallExpression(OperationDescriptor descriptor, CallExpression.CallType callType, java.lang.Object[] args)
Is called before a resolved call expression is actually executed. Do not modify the parameters!- Parameters:
descriptor- the descriptor to be calledcallType- the type of the callargs- the actual arguments
-
visitedCallExpression
void visitedCallExpression(OperationDescriptor descriptor, CallExpression.CallType callType, java.lang.Object[] args, java.lang.Object result)
Is called after a resolved call expression is actually executed. Do not modify the parameters!- Parameters:
descriptor- the descriptor to be calledcallType- the type of the callargs- the actual argumentsresult- the result of the call
-
failedAt
void failedAt(Expression expression)
Is called when the evaluation of an expression caused an execution failure.- Parameters:
expression- the failing expression
-
getLocale
java.util.Locale getLocale()
Returns the current locale for evaluation.- Returns:
- the current locale
-
setLocale
void setLocale(java.util.Locale locale)
Changes the current locale.- Parameters:
locale- the new locale (ignored if null)
-
setRuntimeEnvironment
void setRuntimeEnvironment(RuntimeEnvironment<?,?> environment)
Defines the actual runtime environment.- Parameters:
environment- the environment
-
getRuntimeEnvironment
RuntimeEnvironment<?,?> getRuntimeEnvironment()
Returns the actual runtime environment.- Returns:
- registry the runtime environment (may be null if not currently executing)
-
-