Package cs1302.tracer.trace
Class BreakpointReader
java.lang.Object
cs1302.tracer.trace.BreakpointReader
Reads executable source lines from debug attributes without loading guest classes.
-
Method Summary
Modifier and TypeMethodDescriptionread(CompilationHelper.CompilationResult compiled) Reads every compiled class, including unused and nested declarations.resolve(CompilationHelper.CompilationResult compiled, Collection<BreakpointSpec> specs) Resolves breakpoint specifications against the executable lines found in compiled classes.resolve(Map<String, Set<Integer>> availableLines, Collection<BreakpointSpec> specs) Resolves breakpoint specifications against a map of source paths to executable lines.
-
Method Details
-
read
public static Map<String,Set<Integer>> read(CompilationHelper.CompilationResult compiled) throws IOException Reads every compiled class, including unused and nested declarations.- Parameters:
compiled- Owned compilation output.- Returns:
- Source paths mapped to executable lines.
- Throws:
IOException- On class file read failure.
-
resolve
public static Map<String,Set<Integer>> resolve(CompilationHelper.CompilationResult compiled, Collection<BreakpointSpec> specs) throws IOException Resolves breakpoint specifications against the executable lines found in compiled classes.- Parameters:
compiled- Owned compilation output.specs- Breakpoint specifications.- Returns:
- Source paths mapped to matching executable lines.
- Throws:
IOException- On class file read failure.
-
resolve
public static Map<String,Set<Integer>> resolve(Map<String, Set<Integer>> availableLines, Collection<BreakpointSpec> specs) Resolves breakpoint specifications against a map of source paths to executable lines.- Parameters:
availableLines- Source paths mapped to valid executable lines.specs- Breakpoint specifications.- Returns:
- Source paths mapped to matching executable lines.
-