public class DependencyRecorder extends Object implements MultipleDependencyGraphRecorder
Modifier and Type | Class and Description |
---|---|
static class |
DependencyRecorder.NestedIOException
DependencyRecorder is not allowed to throw checked exceptions, because if
it did then
CodeSplitter and
ControlFlowAnalyzer would throw exceptions all over the place. |
NULL_RECORDER
Constructor and Description |
---|
DependencyRecorder(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Stop recording dependencies.
|
void |
endDependencyGraph()
Stop recording the current dependency graph.
|
void |
methodIsLiveBecause(JMethod liveMethod,
List<JMethod> dependencyChain)
Used to record the dependencies of a specific method.
|
void |
open() |
protected void |
printMethodDependencyBetween(JMethod curMethod,
JMethod depMethod) |
protected void |
recordDependenciesImpl(TreeLogger logger,
JProgram jprogram)
Used to record dependencies of a program.
|
void |
startDependencyGraph(String identifier,
String extnds)
Start a new dependency graph.
|
public DependencyRecorder(OutputStream out)
public void close()
MultipleDependencyGraphRecorder
close
in interface MultipleDependencyGraphRecorder
public void endDependencyGraph()
MultipleDependencyGraphRecorder
endDependencyGraph
in interface MultipleDependencyGraphRecorder
public void methodIsLiveBecause(JMethod liveMethod, List<JMethod> dependencyChain)
methodIsLiveBecause
in interface ControlFlowAnalyzer.DependencyRecorder
public void open()
open
in interface MultipleDependencyGraphRecorder
public void startDependencyGraph(String identifier, String extnds)
MultipleDependencyGraphRecorder
startDependencyGraph
in interface MultipleDependencyGraphRecorder
protected void recordDependenciesImpl(TreeLogger logger, JProgram jprogram)
Copyright © 2016. All rights reserved.