public class CompilationUnitInvalidator extends Object
Constructor and Description |
---|
CompilationUnitInvalidator() |
Modifier and Type | Method and Description |
---|---|
static void |
retainValidUnits(TreeLogger logger,
Collection<CompilationUnit> units,
Map<String,CompiledClass> validClasses,
CompilationErrorsIndex compilationErrorsIndex)
Mutates
units by retaining only valid units. |
public static void retainValidUnits(TreeLogger logger, Collection<CompilationUnit> units, Map<String,CompiledClass> validClasses, CompilationErrorsIndex compilationErrorsIndex)
units
by retaining only valid units. A unit is invalid if
it
validClasses
that has errors,
units
that has errors, or
units
or validClasses
.
Copyright © 2018. All rights reserved.