public class CompilationErrorsIndexImpl extends Object implements CompilationErrorsIndex, Serializable
JDT compilation errors for a current compile can be accumulated here, saved into libraries, and reloaded later from libraries to enable accurate and detailed compilation error cause traces.
Constructor and Description |
---|
CompilationErrorsIndexImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(String typeSourceName,
String fileName,
List<String> typeReferences,
List<String> compilationErrors)
Records the filename, names of referenced types, and known compilation errors for a given type.
|
boolean |
equals(Object object) |
Set<String> |
getCompileErrors(String typeSourceName)
Returns the compile error strings previously recorded for a given type.
|
String |
getFileName(String typeSourceName)
Returns the file name previously recorded for a given type.
|
Set<String> |
getTypeReferences(String typeSourceName)
Returns the type reference strings previously recorded for a given type.
|
boolean |
hasCompileErrors(String typeSourceName)
Returns whether a given type has any recorded compile errors.
|
int |
hashCode() |
boolean |
hasTypeReferences(String typeSourceName)
Returns whether a given type has any recorded type references.
|
void |
merge(CompilationErrorsIndexImpl that) |
public void add(String typeSourceName, String fileName, List<String> typeReferences, List<String> compilationErrors)
CompilationErrorsIndex
add
in interface CompilationErrorsIndex
public Set<String> getCompileErrors(String typeSourceName)
CompilationErrorsIndex
getCompileErrors
in interface CompilationErrorsIndex
public String getFileName(String typeSourceName)
CompilationErrorsIndex
getFileName
in interface CompilationErrorsIndex
public Set<String> getTypeReferences(String typeSourceName)
CompilationErrorsIndex
getTypeReferences
in interface CompilationErrorsIndex
public boolean hasCompileErrors(String typeSourceName)
CompilationErrorsIndex
hasCompileErrors
in interface CompilationErrorsIndex
public boolean hasTypeReferences(String typeSourceName)
CompilationErrorsIndex
hasTypeReferences
in interface CompilationErrorsIndex
public void merge(CompilationErrorsIndexImpl that)
Copyright © 2018. All rights reserved.