public class InvalidationBytesCalculator extends Object
ICompilationUnit| Constructor and Description |
|---|
InvalidationBytesCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static Map<ICompilationUnit,Integer> |
calculateBytesChanged(Collection<ICompilationUnit> units) |
static Map<ICompilationUnit,Integer> |
calculateTotalInvalidatedBytesChanged(Collection<ICompilationUnit> units)
Calculates how many bytes needs to be recompiled for each unit in the list of units
This will walk through the graph for each unit and add up the number of bytes for
each unique compilation unit that needs to be changed.
|
public static Map<ICompilationUnit,Integer> calculateBytesChanged(Collection<ICompilationUnit> units) throws InterruptedException
units - A collection of compilation units.Map from each ICompilationUnit in units to the number of bytes its ABC bytecode containsInterruptedExceptionpublic static Map<ICompilationUnit,Integer> calculateTotalInvalidatedBytesChanged(Collection<ICompilationUnit> units) throws InterruptedException
units - The units that we want invalidation byte info forInteger representing
how many bytes the change of that unit invalidatedInterruptedExceptionCopyright © 2016 The Apache Software Foundation. All rights reserved.