Interface ITracer
-
- All Known Implementing Classes:
AbstractVilTracer,NoTracer,StreamTracer,StreamVilTracer,VilTracer
public interface ITracer extends ITracer
A simple tracer interface providing test support to the execution part.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfailedAt(ITemplateLangElement element)Is called when the execution of a template language element failed.voidvisitAlternative(boolean takeIf)An alternative was visited.voidvisitDef(Def def, RuntimeEnvironment<?,?> environment)Starts visiting a sub-template.voidvisitedDef(Def def, RuntimeEnvironment<?,?> environment, java.lang.Object result)Ends visiting a sub-template.voidvisitedFlush()Is called after a content flush.voidvisitedLoop(VariableDeclaration var)Visiting a loop ended.voidvisitedSwitch(java.lang.Object select, int alternative, java.lang.Object value)A switch statement was visited.voidvisitedTemplate(Template template)Ends visiting a template.voidvisitedWhileBody()Is called at the end of a while body being visited.voidvisitFlush()Is called before a content flush.voidvisitLoop(VariableDeclaration var)Visiting a loop started.voidvisitTemplate(Template template)Starts visiting a template.voidvisitWhileBody()Is called at the beginning of a while body being visited.-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.common.ITracer
enable, getTraceFilter, setTraceFilter, trace, traceError, traceExecutionException, traceWarning, valueDefined
-
Methods inherited from interface net.ssehub.easy.instantiation.core.model.expressions.ITracer
failedAt, getLocale, getRuntimeEnvironment, setLocale, setRuntimeEnvironment, visitedCallExpression, visitingCallExpression
-
-
-
-
Method Detail
-
visitTemplate
void visitTemplate(Template template)
Starts visiting a template.- Parameters:
template- the template being visited
-
visitedTemplate
void visitedTemplate(Template template)
Ends visiting a template.- Parameters:
template- the template
-
visitDef
void visitDef(Def def, RuntimeEnvironment<?,?> environment)
Starts visiting a sub-template.- Parameters:
def- the sub-templateenvironment- the runtime environment
-
visitedDef
void visitedDef(Def def, RuntimeEnvironment<?,?> environment, java.lang.Object result)
Ends visiting a sub-template.- Parameters:
def- the sub-templateenvironment- the runtime environmentresult- the execution result
-
visitedSwitch
void visitedSwitch(java.lang.Object select, int alternative, java.lang.Object value)A switch statement was visited.- Parameters:
select- the select valuealternative- the successive alternative (0-based index including default)value- the actual value of the switch statement
-
visitLoop
void visitLoop(VariableDeclaration var)
Visiting a loop started.- Parameters:
var- the loop/iterator variable
-
visitedLoop
void visitedLoop(VariableDeclaration var)
Visiting a loop ended.- Parameters:
var- the loop/iterator variable
-
visitAlternative
void visitAlternative(boolean takeIf)
An alternative was visited.- Parameters:
takeIf- iftruethe if-branch is used,falseelse the else-branch
-
failedAt
void failedAt(ITemplateLangElement element)
Is called when the execution of a template language element failed.- Parameters:
element- the failed element
-
visitWhileBody
void visitWhileBody()
Is called at the beginning of a while body being visited.
-
visitedWhileBody
void visitedWhileBody()
Is called at the end of a while body being visited.
-
visitFlush
void visitFlush()
Is called before a content flush.
-
visitedFlush
void visitedFlush()
Is called after a content flush.
-
-