Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jdt.core.dom
Class CompilationUnitResolver  view CompilationUnitResolver download CompilationUnitResolver.java

java.lang.Object
  extended byorg.eclipse.jdt.internal.compiler.Compiler
      extended byorg.eclipse.jdt.core.dom.CompilationUnitResolver
All Implemented Interfaces:
org.eclipse.jdt.internal.compiler.impl.ITypeRequestor, org.eclipse.jdt.internal.compiler.problem.ProblemSeverities

class CompilationUnitResolver
extends org.eclipse.jdt.internal.compiler.Compiler


Nested Class Summary
(package private) static class CompilationUnitResolver.CancelableNameEnvironment
           
(package private) static class CompilationUnitResolver.CancelableProblemFactory
           
 
Field Summary
 
Fields inherited from class org.eclipse.jdt.internal.compiler.Compiler
DEBUG, DebugRequestor, lookupEnvironment, options, parser, parseThreshold, problemReporter, requestor, totalUnits, unitsToProcess
 
Fields inherited from interface org.eclipse.jdt.internal.compiler.problem.ProblemSeverities
Abort, AbortCompilation, AbortCompilationUnit, AbortMethod, AbortType, Error, Ignore, SecondaryError, Warning
 
Constructor Summary
CompilationUnitResolver(org.eclipse.jdt.internal.compiler.env.INameEnvironment environment, org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy policy, java.util.Map settings, org.eclipse.jdt.internal.compiler.ICompilerRequestor requestor, org.eclipse.jdt.internal.compiler.IProblemFactory problemFactory)
          Answer a new CompilationUnitVisitor using the given name environment and compiler options.
 
Method Summary
 void accept(org.eclipse.jdt.internal.compiler.env.ISourceType[] sourceTypes, org.eclipse.jdt.internal.compiler.lookup.PackageBinding packageBinding)
          Add additional source types
protected static org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy getHandlingPolicy()
           
protected static org.eclipse.jdt.internal.compiler.ICompilerRequestor getRequestor()
           
protected  void handleInternalException(org.eclipse.jdt.internal.compiler.problem.AbortCompilation abortException, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)
           
protected  void handleInternalException(java.lang.Throwable internalException, org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit, org.eclipse.jdt.internal.compiler.CompilationResult result)
           
 void initializeParser()
           
static org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration parse(char[] source, NodeSearcher nodeSearcher, java.util.Map settings)
           
 void removeUnresolvedBindings(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration)
           
private  void removeUnresolvedBindings(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type)
           
static org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(char[] source, char[][] packageName, java.lang.String unitName, org.eclipse.jdt.core.IJavaProject javaProject, NodeSearcher nodeSearcher, java.util.Map options, boolean cleanUp, org.eclipse.jdt.core.WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit, org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, boolean verifyMethods, boolean analyzeCode, boolean generateCode)
          Internal API used to resolve a given compilation unit.
private  org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit, org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, NodeSearcher nodeSearcher, boolean verifyMethods, boolean analyzeCode, boolean generateCode)
           
 org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, boolean verifyMethods, boolean analyzeCode, boolean generateCode)
          Internal API used to resolve a given compilation unit.
 
Methods inherited from class org.eclipse.jdt.internal.compiler.Compiler
accept, accept, addCompilationUnit, beginToCompile, compile, process, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompilationUnitResolver

public CompilationUnitResolver(org.eclipse.jdt.internal.compiler.env.INameEnvironment environment,
                               org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy policy,
                               java.util.Map settings,
                               org.eclipse.jdt.internal.compiler.ICompilerRequestor requestor,
                               org.eclipse.jdt.internal.compiler.IProblemFactory problemFactory)
Answer a new CompilationUnitVisitor using the given name environment and compiler options. The environment and options will be in effect for the lifetime of the compiler. When the compiler is run, compilation results are sent to the given requestor.

Method Detail

accept

public void accept(org.eclipse.jdt.internal.compiler.env.ISourceType[] sourceTypes,
                   org.eclipse.jdt.internal.compiler.lookup.PackageBinding packageBinding)
Description copied from class: org.eclipse.jdt.internal.compiler.Compiler
Add additional source types


getHandlingPolicy

protected static org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy getHandlingPolicy()

getRequestor

protected static org.eclipse.jdt.internal.compiler.ICompilerRequestor getRequestor()

initializeParser

public void initializeParser()

handleInternalException

protected void handleInternalException(java.lang.Throwable internalException,
                                       org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit,
                                       org.eclipse.jdt.internal.compiler.CompilationResult result)

handleInternalException

protected void handleInternalException(org.eclipse.jdt.internal.compiler.problem.AbortCompilation abortException,
                                       org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit)

parse

public static org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration parse(char[] source,
                                                                                     NodeSearcher nodeSearcher,
                                                                                     java.util.Map settings)

resolve

public static org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(char[] source,
                                                                                       char[][] packageName,
                                                                                       java.lang.String unitName,
                                                                                       org.eclipse.jdt.core.IJavaProject javaProject,
                                                                                       NodeSearcher nodeSearcher,
                                                                                       java.util.Map options,
                                                                                       boolean cleanUp,
                                                                                       org.eclipse.jdt.core.WorkingCopyOwner owner,
                                                                                       org.eclipse.core.runtime.IProgressMonitor monitor)
                                                                                throws org.eclipse.jdt.core.JavaModelException

removeUnresolvedBindings

public void removeUnresolvedBindings(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration)

removeUnresolvedBindings

private void removeUnresolvedBindings(org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type)

resolve

private org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit,
                                                                                 org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit,
                                                                                 NodeSearcher nodeSearcher,
                                                                                 boolean verifyMethods,
                                                                                 boolean analyzeCode,
                                                                                 boolean generateCode)

resolve

public org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit,
                                                                                boolean verifyMethods,
                                                                                boolean analyzeCode,
                                                                                boolean generateCode)
Description copied from class: org.eclipse.jdt.internal.compiler.Compiler
Internal API used to resolve a given compilation unit. Can run a subset of the compilation process


resolve

public org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration resolve(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit,
                                                                                org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit,
                                                                                boolean verifyMethods,
                                                                                boolean analyzeCode,
                                                                                boolean generateCode)
Description copied from class: org.eclipse.jdt.internal.compiler.Compiler
Internal API used to resolve a given compilation unit. Can run a subset of the compilation process