public class CompilationUnitProblemFinder extends Compiler
annotationProcessorManager, annotationProcessorStartIndex, DEBUG, DebugRequestor, lookupEnvironment, options, out, parser, parseThreshold, problemReporter, progress, referenceBindings, remainingIterations, requestor, stats, totalUnits, unitsToProcess, useSingleThreadAbort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, CoreSeverityMASK, Error, Fatal, Ignore, Info, InternalError, Optional, SecondaryError, Warning| Modifier | Constructor and Description |
|---|---|
protected |
CompilationUnitProblemFinder(INameEnvironment environment,
IErrorHandlingPolicy policy,
CompilerOptions compilerOptions,
ICompilerRequestor requestor,
IProblemFactory problemFactory)
Answer a new CompilationUnitVisitor using the given name environment and compiler options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IModule module,
LookupEnvironment environment)
Accept the requested module, could come in in one of 3 different forms:
IBinaryModule
ISourceModule
IModule.AutoModule
|
void |
accept(ISourceType[] sourceTypes,
PackageBinding packageBinding,
AccessRestriction accessRestriction)
Add additional source types
|
protected static CompilerOptions |
getCompilerOptions(java.util.Map settings,
boolean creatingAST,
boolean statementsRecovery) |
protected static IErrorHandlingPolicy |
getHandlingPolicy() |
protected static ICompilerRequestor |
getRequestor() |
void |
initializeParser() |
static CompilationUnitDeclaration |
process(CompilationUnit unitElement,
SourceElementParser parser,
WorkingCopyOwner workingCopyOwner,
java.util.HashMap problems,
boolean creatingAST,
int reconcileFlags,
IProgressMonitor monitor) |
static CompilationUnitDeclaration |
process(CompilationUnit unitElement,
WorkingCopyOwner workingCopyOwner,
java.util.HashMap problems,
boolean creatingAST,
int reconcileFlags,
IProgressMonitor monitor) |
accept, accept, addCompilationUnit, backupAptProblems, beginToCompile, compile, getUnitToProcess, handleInternalException, handleInternalException, internalBeginToCompile, process, processAnnotations, processCompiledUnits, reportProgress, reportWorked, reset, resolve, resolve, restoreAptProblems, setBinaryTypes, shouldCleanupprotected CompilationUnitProblemFinder(INameEnvironment environment, IErrorHandlingPolicy policy, CompilerOptions compilerOptions, ICompilerRequestor requestor, IProblemFactory problemFactory)
environment - org.aspectj.org.eclipse.jdt.internal.compiler.api.env.INameEnvironment
Environment used by the compiler in order to resolve type and package
names. The name environment implements the actual connection of the compiler
to the outside world (e.g. in batch mode the name environment is performing
pure file accesses, reuse previous build state or connection to repositories).
Note: the name environment is responsible for implementing the actual classpath
rules.policy - org.aspectj.org.eclipse.jdt.internal.compiler.api.problem.IErrorHandlingPolicy
Configurable part for problem handling, allowing the compiler client to
specify the rules for handling problems (stop on first error or accumulate
them all) and at the same time perform some actions such as opening a dialog
in UI when compiling interactively.compilerOptions - The compiler options to use for the resolution.requestor - org.aspectj.org.eclipse.jdt.internal.compiler.api.ICompilerRequestor
Component which will receive and persist all compilation results and is intended
to consume them as they are produced. Typically, in a batch compiler, it is
responsible for writing out the actual .class files to the file system.problemFactory - org.aspectj.org.eclipse.jdt.internal.compiler.api.problem.IProblemFactory
Factory used inside the compiler to create problem descriptors. It allows the
compiler client to supply its own representation of compilation problems in
order to avoid object conversions. Note that the factory is not supposed
to accumulate the created problems, the compiler will gather them all and hand
them back as part of the compilation unit result.DefaultErrorHandlingPolicies,
CompilationResultpublic void accept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction)
accept in interface ITypeRequestoraccept in class Compilerpublic void accept(IModule module, LookupEnvironment environment)
ITypeRequestorIBinaryModule
ISourceModule
protected static CompilerOptions getCompilerOptions(java.util.Map settings, boolean creatingAST, boolean statementsRecovery)
protected static IErrorHandlingPolicy getHandlingPolicy()
protected static ICompilerRequestor getRequestor()
public static CompilationUnitDeclaration process(CompilationUnit unitElement, SourceElementParser parser, WorkingCopyOwner workingCopyOwner, java.util.HashMap problems, boolean creatingAST, int reconcileFlags, IProgressMonitor monitor) throws JavaModelException
JavaModelExceptionpublic static CompilationUnitDeclaration process(CompilationUnit unitElement, WorkingCopyOwner workingCopyOwner, java.util.HashMap problems, boolean creatingAST, int reconcileFlags, IProgressMonitor monitor) throws JavaModelException
JavaModelExceptionpublic void initializeParser()
initializeParser in class Compiler