public class CompilationResult
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CompilationResult.ProblemsForRemovalFilter |
| Modifier and Type | Field and Description |
|---|---|
boolean |
checkSecondaryTypes |
ICompilationUnit |
compilationUnit |
java.util.Map |
compiledTypes |
char[] |
fileName |
boolean |
hasAnnotations |
boolean |
hasBeenAccepted |
boolean |
hasFunctionalTypes |
boolean |
hasInconsistentToplevelHierarchies |
boolean |
hasSyntaxError |
int[] |
lineSeparatorPositions |
char[][] |
packageName |
int |
problemCount |
CategorizedProblem[] |
problems |
char[][][] |
qualifiedReferences |
RecoveryScannerData |
recoveryScannerData |
char[][] |
rootReferences |
char[][] |
simpleNameReferences |
int |
taskCount |
CategorizedProblem[] |
tasks |
int |
totalUnitsKnown |
int |
unitIndex |
| Constructor and Description |
|---|
CompilationResult(char[] fileName,
int unitIndex,
int totalUnitsKnown,
int maxProblemPerUnit) |
CompilationResult(ICompilationUnit compilationUnit,
int unitIndex,
int totalUnitsKnown,
int maxProblemPerUnit) |
| Modifier and Type | Method and Description |
|---|---|
CategorizedProblem[] |
getAllProblems() |
ClassFile[] |
getClassFiles() |
ICompilationUnit |
getCompilationUnit()
Answer the initial compilation unit corresponding to the present compilation result
|
CategorizedProblem[] |
getCUProblems()
Same as getProblems() but don't answer problems that actually concern the enclosing package.
|
CategorizedProblem[] |
getErrors()
Answer the errors encountered during compilation.
|
char[] |
getFileName()
Answer the initial file name
|
int[] |
getLineSeparatorPositions() |
CategorizedProblem[] |
getProblems()
Answer the problems (errors and warnings) encountered during compilation.
|
CategorizedProblem[] |
getTasks()
Answer the tasks (TO-DO, ...) encountered during compilation.
|
boolean |
hasErrors() |
boolean |
hasMandatoryErrors() |
boolean |
hasProblems() |
boolean |
hasTasks() |
boolean |
hasWarnings() |
boolean |
isFromBinarySource() |
void |
noSourceAvailable() |
void |
record(CategorizedProblem newProblem,
ReferenceContext referenceContext) |
void |
record(CategorizedProblem newProblem,
ReferenceContext referenceContext,
boolean mandatoryError) |
void |
record(char[] typeName,
ClassFile classFile)
For now, remember the compiled type using its compound name.
|
void |
recordPackageName(char[][] packName) |
void |
removeProblem(CategorizedProblem problem) |
int |
removeProblems(CompilationResult.ProblemsForRemovalFilter pf)
Can be used to tidy up the problems set, if a problem is accepted by the
filter, it will be removed.
|
CompilationResult |
tagAsAccepted() |
java.lang.String |
toString() |
public CategorizedProblem[] problems
public CategorizedProblem[] tasks
public int problemCount
public int taskCount
public ICompilationUnit compilationUnit
public char[][][] qualifiedReferences
public char[][] simpleNameReferences
public char[][] rootReferences
public boolean hasAnnotations
public boolean hasFunctionalTypes
public int[] lineSeparatorPositions
public RecoveryScannerData recoveryScannerData
public java.util.Map compiledTypes
public int unitIndex
public int totalUnitsKnown
public boolean hasBeenAccepted
public char[] fileName
public boolean hasInconsistentToplevelHierarchies
public boolean hasSyntaxError
public char[][] packageName
public boolean checkSecondaryTypes
public CompilationResult(char[] fileName,
int unitIndex,
int totalUnitsKnown,
int maxProblemPerUnit)
public CompilationResult(ICompilationUnit compilationUnit, int unitIndex, int totalUnitsKnown, int maxProblemPerUnit)
public CategorizedProblem[] getAllProblems()
public ClassFile[] getClassFiles()
public ICompilationUnit getCompilationUnit()
public CategorizedProblem[] getErrors()
public char[] getFileName()
public int[] getLineSeparatorPositions()
public CategorizedProblem[] getProblems()
public CategorizedProblem[] getCUProblems()
public CategorizedProblem[] getTasks()
public boolean hasErrors()
public boolean hasMandatoryErrors()
public boolean hasProblems()
public boolean hasTasks()
public boolean hasWarnings()
public void recordPackageName(char[][] packName)
public void record(CategorizedProblem newProblem, ReferenceContext referenceContext)
public void record(CategorizedProblem newProblem, ReferenceContext referenceContext, boolean mandatoryError)
public void record(char[] typeName,
ClassFile classFile)
public void removeProblem(CategorizedProblem problem)
public CompilationResult tagAsAccepted()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isFromBinarySource()
public void noSourceAvailable()
public int removeProblems(CompilationResult.ProblemsForRemovalFilter pf)