public class MethodTranslator extends java.lang.Object implements Translator<Method>
| Constructor and Description |
|---|
MethodTranslator(JavaCompiler javac,
JavaCompilerHelper helper) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doCaptureTimeouts(Method model) |
protected boolean |
doTraceErrors() |
protected boolean |
doTraceValueChanges() |
protected JavaCompilerHelper |
getHelper() |
protected JavaCompiler |
getJavac() |
protected boolean |
isMethodExcluded(Method model) |
protected void |
traceEnteringExiting(Method model) |
protected void |
traceErrors(Method model) |
protected void |
traceReturn(Method model) |
protected void |
traceTimeout(Method model) |
protected void |
traceValueChanges(Method model)
Destructive procedure that modifies the method body to contain a 'change' event signal after each assignment operator.
|
protected void |
transformConstructor(Method model) |
protected void |
transformToBlockConstructs(Method model) |
void |
translate(Method model)
After instrumentation, the method will have a structure like one presented here:
GW.enteringStatement(...)
try {
...
|
public MethodTranslator(JavaCompiler javac, JavaCompilerHelper helper)
protected boolean doTraceValueChanges()
protected boolean doTraceErrors()
protected boolean doCaptureTimeouts(Method model)
public void translate(Method model)
translate in interface Translator<Method>model - - method that will be instrumentedprotected void traceEnteringExiting(Method model)
protected void traceReturn(Method model)
protected void traceTimeout(Method model)
protected void traceErrors(Method model)
protected void traceValueChanges(Method model)
model - - method representation that gets modifiedprotected void transformConstructor(Method model)
protected void transformToBlockConstructs(Method model)
protected boolean isMethodExcluded(Method model)
protected JavaCompiler getJavac()
protected JavaCompilerHelper getHelper()