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
 ICompilationUnit compilationUnit
           
 java.util.Map compiledTypes
           
 char[] fileName
           
 boolean hasAnnotations
           
 boolean hasBeenAccepted
           
 boolean hasInconsistentToplevelHierarchies
           
 boolean hasSyntaxError
           
 int[] lineSeparatorPositions
           
 int problemCount
           
 CategorizedProblem[] problems
           
 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
 void discardSuppressedWarnings()
           
 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 recordSuppressWarnings(long irritant, int scopeStart, int scopeEnd)
           
 CompilationResult tagAsAccepted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

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
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

discardSuppressedWarnings

public void discardSuppressedWarnings()

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()

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.


recordSuppressWarnings

public void recordSuppressWarnings(long irritant,
                                   int scopeStart,
                                   int scopeEnd)

tagAsAccepted

public CompilationResult tagAsAccepted()

toString

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