Klasse AbstractImageBuilder

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
Alle implementierten Schnittstellen:
ICompilerRequestor, ICompilationUnitLocator
Bekannte direkte Unterklassen:
BatchImageBuilder, IncrementalImageBuilder

public abstract class AbstractImageBuilder extends Object implements ICompilerRequestor, ICompilationUnitLocator
The abstract superclass of Java builders. Provides the building and compilation mechanism in common with the batch and incremental builders.
  • Felddetails

    • javaBuilder

      protected JavaBuilder javaBuilder
    • newState

      protected State newState
    • nameEnvironment

      protected NameEnvironment nameEnvironment
    • sourceLocations

      protected ClasspathMultiDirectory[] sourceLocations
    • notifier

      protected BuildNotifier notifier
    • compiler

      protected Compiler compiler
    • workQueue

      protected WorkQueue workQueue
    • problemSourceFiles

      protected LinkedHashSet<SourceFile> problemSourceFiles
    • compiledAllAtOnce

      protected boolean compiledAllAtOnce
    • keepStoringProblemMarkers

      protected boolean keepStoringProblemMarkers
    • filesWithAnnotations

      protected Map<SourceFile,AnnotationBinding[]> filesWithAnnotations
    • MAX_AT_ONCE

      public static int MAX_AT_ONCE
    • JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES

      public static final String[] JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES
    • S_ERROR

      public static final Integer S_ERROR
    • S_WARNING

      public static final Integer S_WARNING
    • S_INFO

      public static final Integer S_INFO
    • P_HIGH

      public static final Integer P_HIGH
    • P_NORMAL

      public static final Integer P_NORMAL
    • P_LOW

      public static final Integer P_LOW
  • Konstruktordetails

  • Methodendetails

    • acceptResult

      public void acceptResult(CompilationResult result)
      Beschreibung aus Schnittstelle kopiert: ICompilerRequestor
      Accept a compilation result.
      Angegeben von:
      acceptResult in Schnittstelle ICompilerRequestor
    • acceptSecondaryType

      protected void acceptSecondaryType(ClassFile classFile)
    • addAllSourceFiles

      protected void addAllSourceFiles(LinkedHashSet<SourceFile> sourceFiles) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • cleanUp

      protected void cleanUp()
    • compile

      protected void compile(SourceFile[] units)
    • compile

      protected void compile(SourceFile[] units, SourceFile[] additionalUnits, boolean compilingFirstGroup)
    • copyResource

      protected void copyResource(org.eclipse.core.resources.IResource source, org.eclipse.core.resources.IResource destination) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • createProblemFor

      protected void createProblemFor(org.eclipse.core.resources.IResource resource, IMember javaElement, String message, String problemSeverity)
    • deleteGeneratedFiles

      protected void deleteGeneratedFiles(org.eclipse.core.resources.IFile[] deletedGeneratedFiles)
    • findSourceFile

      protected SourceFile findSourceFile(org.eclipse.core.resources.IFile file, boolean mustExist)
    • finishedWith

      protected void finishedWith(String sourceLocator, CompilationResult result, char[] mainTypeName, ArrayList definedTypeNames, ArrayList duplicateTypeNames)
    • createFolder

      protected org.eclipse.core.resources.IContainer createFolder(org.eclipse.core.runtime.IPath packagePath, org.eclipse.core.resources.IContainer outputFolder) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • fromIFile

      public ICompilationUnit fromIFile(org.eclipse.core.resources.IFile file)
      Angegeben von:
      fromIFile in Schnittstelle ICompilationUnitLocator
    • initializeAnnotationProcessorManager

      protected void initializeAnnotationProcessorManager(Compiler newCompiler)
    • internalException

      protected RuntimeException internalException(org.eclipse.core.runtime.CoreException t)
    • isExcludedFromProject

      protected boolean isExcludedFromProject(org.eclipse.core.runtime.IPath childPath) throws JavaModelException
      Löst aus:
      JavaModelException
    • newCompiler

      protected Compiler newCompiler()
    • notifyParticipants

      protected CompilationParticipantResult[] notifyParticipants(SourceFile[] unitsAboutToCompile)
    • processAnnotationResults

      protected abstract void processAnnotationResults(CompilationParticipantResult[] results)
    • processAnnotations

      protected void processAnnotations(CompilationParticipantResult[] results)
    • recordParticipantResult

      protected void recordParticipantResult(CompilationParticipantResult result)
    • storeProblemsFor

      protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws org.eclipse.core.runtime.CoreException
      Creates a marker from each problem and adds it to the resource. The marker is as follows: - its type is T_PROBLEM - its plugin ID is the JavaBuilder's plugin ID - its message is the problem's message - its priority reflects the severity of the problem - its range is the problem's range - it has an extra attribute "ID" which holds the problem's id - it's IMarker.SOURCE_ID attribute is positioned to JavaBuilder.SOURCE_ID if the problem was generated by JDT; else the IMarker.SOURCE_ID attribute is carried from the problem to the marker in extra attributes, if present.
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • storeTasksFor

      protected void storeTasksFor(SourceFile sourceFile, CategorizedProblem[] tasks) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • updateProblemsFor

      protected void updateProblemsFor(SourceFile sourceFile, CompilationResult result) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • updateTasksFor

      protected void updateTasksFor(SourceFile sourceFile, CompilationResult result) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • writeClassFile

      protected char[] writeClassFile(ClassFile classFile, SourceFile compilationUnit, boolean isTopLevelType) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException
    • writeClassFileContents

      protected void writeClassFileContents(ClassFile classFile, org.eclipse.core.resources.IFile file, String qualifiedFileName, boolean isTopLevelType, SourceFile compilationUnit) throws org.eclipse.core.runtime.CoreException
      Löst aus:
      org.eclipse.core.runtime.CoreException