public class DependencyGraphRecorder extends DependencyRecorder
JType.getName()
) to class descriptors. Where
each class descriptor has methods and their dependents.DependencyRecorder.NestedIOException
NULL_RECORDER
Constructor and Description |
---|
DependencyGraphRecorder(OutputStream out,
JProgram jProgram) |
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
classDescriptorFrom(JDeclaredType classType)
Returns a class descriptor from a JDeclaredType.
|
Map<String,ClassDescriptor> |
getCodeModel()
Returns the code model that maps fully qualified class names (eg.
|
protected boolean |
isValid(int n) |
MethodDescriptor |
methodDescriptorFrom(JMethod method) |
protected int |
nextPointerId() |
protected void |
printMethodDependencyBetween(JMethod curMethod,
JMethod depMethod) |
protected String |
signatureFor(JMethod method) |
void |
startDependencyGraph(String name,
String extendz)
Start a new dependency graph.
|
close, endDependencyGraph, methodIsLiveBecause, open, recordDependenciesImpl
public DependencyGraphRecorder(OutputStream out, JProgram jProgram)
protected int nextPointerId()
public Map<String,ClassDescriptor> getCodeModel()
JType.getName()
) to class descriptors.public void startDependencyGraph(String name, String extendz)
MultipleDependencyGraphRecorder
startDependencyGraph
in interface MultipleDependencyGraphRecorder
startDependencyGraph
in class DependencyRecorder
protected void printMethodDependencyBetween(JMethod curMethod, JMethod depMethod)
printMethodDependencyBetween
in class DependencyRecorder
public MethodDescriptor methodDescriptorFrom(JMethod method)
protected boolean isValid(int n)
public ClassDescriptor classDescriptorFrom(JDeclaredType classType)
Copyright © 2018. All rights reserved.