public class AnalysisResult extends Object
Contains the IR program and call graph, and provides query APIs for impact analysis.
Delegates impact computation to ImpactEngine for real BFS paths and distances.
| Constructor and Description |
|---|
AnalysisResult(IRProgram irProgram) |
AnalysisResult(IRProgram irProgram,
CallGraph callGraph) |
| Modifier and Type | Method and Description |
|---|---|
String |
exportJson()
Export to JSON format.
|
String |
exportXml()
Export to XML (legacy compatible format).
|
CallGraph |
getCallGraph() |
IRProgram |
getIrProgram() |
ImpactResult |
getRoutineImpact(String routineId,
int maxDepth)
Query routine impact: find all routines and tables transitively
affected by a change to the given routine.
|
ImpactResult |
getTableImpact(String tableName,
ETableAccessKind accessFilter)
Query table impact: find all routines that access the given table,
then trace callers transitively.
|
ImpactResult |
getTableImpact(String tableName,
ETableAccessKind accessFilter,
int maxDepth)
Query table impact with configurable max depth.
|
void |
setConfig(AnalyzerV2Config config) |
public AnalysisResult(IRProgram irProgram)
public AnalysisResult(IRProgram irProgram, CallGraph callGraph)
public void setConfig(AnalyzerV2Config config)
public IRProgram getIrProgram()
public CallGraph getCallGraph()
public ImpactResult getRoutineImpact(String routineId, int maxDepth)
public ImpactResult getTableImpact(String tableName, ETableAccessKind accessFilter)
public ImpactResult getTableImpact(String tableName, ETableAccessKind accessFilter, int maxDepth)
public String exportJson()