org.eclipse.jdt.internal.compiler
Class CompilationResult

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.CompilationResult

public class CompilationResult
extends java.lang.Object


Field Summary
 boolean checkSecondaryTypes
           
 ICompilationUnit compilationUnit
           
 java.util.Map compiledTypes
           
 char[] fileName
           
 java.util.Set firstErrors
           
 boolean hasAnnotations
           
 boolean hasBeenAccepted
           
 boolean hasInconsistentToplevelHierarchies
           
 boolean hasSyntaxError
           
 int[] lineSeparatorPositions
           
 char[][] packageName
           
 int problemCount
           
 CategorizedProblem[] problems
           
 java.util.Map problemsMap
           
 char[][][] qualifiedReferences
           
 RecoveryScannerData recoveryScannerData
           
 char[][] simpleNameReferences
           
 int taskCount
           
 CategorizedProblem[] tasks
           
 int totalUnitsKnown
           
 int unitIndex
           
 
Constructor Summary
CompilationResult(char[] fileName, int unitIndex, int totalUnitsKnown, int maxProblemPerUnit)
           
CompilationResult(ICompilationUnit compilationUnit, int unitIndex, int totalUnitsKnown, int maxProblemPerUnit)
           
 
Method Summary
 CategorizedProblem[] getAllProblems()
           
 ClassFile[] getClassFiles()
           
 ICompilationUnit getCompilationUnit()
          Answer the initial compilation unit corresponding to the present compilation result
 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 hasProblems()
           
 boolean hasTasks()
           
 boolean hasWarnings()
           
 void record(CategorizedProblem newProblem, ReferenceContext referenceContext)
           
 void record(char[] typeName, ClassFile classFile)
          For now, remember the compiled type using its compound name.
 void recordPackageName(char[][] packName)
           
 CompilationResult tagAsAccepted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

problems

public CategorizedProblem[] problems

tasks

public CategorizedProblem[] tasks

problemCount

public int problemCount

taskCount

public int taskCount

compilationUnit

public ICompilationUnit compilationUnit

problemsMap

public java.util.Map problemsMap

firstErrors

public java.util.Set firstErrors

qualifiedReferences

public char[][][] qualifiedReferences

simpleNameReferences

public char[][] simpleNameReferences

hasAnnotations

public boolean hasAnnotations

lineSeparatorPositions

public int[] lineSeparatorPositions

recoveryScannerData

public RecoveryScannerData recoveryScannerData

compiledTypes

public java.util.Map compiledTypes

unitIndex

public int unitIndex

totalUnitsKnown

public int totalUnitsKnown

hasBeenAccepted

public boolean hasBeenAccepted

fileName

public char[] fileName

hasInconsistentToplevelHierarchies

public boolean hasInconsistentToplevelHierarchies

hasSyntaxError

public boolean hasSyntaxError

packageName

public char[][] packageName

checkSecondaryTypes

public boolean checkSecondaryTypes
Constructor Detail

CompilationResult

public CompilationResult(char[] fileName,
                         int unitIndex,
                         int totalUnitsKnown,
                         int maxProblemPerUnit)

CompilationResult

public CompilationResult(ICompilationUnit compilationUnit,
                         int unitIndex,
                         int totalUnitsKnown,
                         int maxProblemPerUnit)
Method Detail

getAllProblems

public CategorizedProblem[] getAllProblems()

getClassFiles

public ClassFile[] getClassFiles()

getCompilationUnit

public ICompilationUnit getCompilationUnit()
Answer the initial compilation unit corresponding to the present compilation result


getErrors

public CategorizedProblem[] getErrors()
Answer the errors encountered during compilation.


getFileName

public char[] getFileName()
Answer the initial file name


getLineSeparatorPositions

public int[] getLineSeparatorPositions()

getProblems

public CategorizedProblem[] getProblems()
Answer the problems (errors and warnings) encountered during compilation. This is not a compiler internal API - it has side-effects ! It is intended to be used only once all problems have been detected, and makes sure the problems slot as the exact size of the number of problems.


getTasks

public CategorizedProblem[] getTasks()
Answer the tasks (TO-DO, ...) encountered during compilation. This is not a compiler internal API - it has side-effects ! It is intended to be used only once all problems have been detected, and makes sure the problems slot as the exact size of the number of problems.


hasErrors

public boolean hasErrors()

hasProblems

public boolean hasProblems()

hasTasks

public boolean hasTasks()

hasWarnings

public boolean hasWarnings()

recordPackageName

public void recordPackageName(char[][] packName)

record

public void record(CategorizedProblem newProblem,
                   ReferenceContext referenceContext)

record

public void record(char[] typeName,
                   ClassFile classFile)
For now, remember the compiled type using its compound name.


tagAsAccepted

public CompilationResult tagAsAccepted()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object