org.aspectj.org.eclipse.jdt.internal.core.hierarchy
Class HierarchyResolver

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver
All Implemented Interfaces:
ITypeRequestor

public class HierarchyResolver
extends java.lang.Object
implements ITypeRequestor


Constructor Summary
HierarchyResolver(INameEnvironment nameEnvironment, java.util.Map settings, HierarchyBuilder builder, IProblemFactory problemFactory)
           
HierarchyResolver(LookupEnvironment lookupEnvironment, HierarchyBuilder builder)
           
 
Method Summary
 void accept(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction)
          Add an additional binary type
 void accept(ICompilationUnit sourceUnit, AccessRestriction accessRestriction)
          Add an additional compilation unit.
 void accept(ISourceType[] sourceTypes, PackageBinding packageBinding, AccessRestriction accessRestriction)
          Add additional source types
 void resolve(IGenericType suppliedType)
          Resolve the supertypes for the supplied source type.
 void resolve(Openable[] openables, java.util.HashSet localTypes, IProgressMonitor monitor)
          Resolve the supertypes for the types contained in the given openables (ICompilationUnits and/or IClassFiles).
 ReferenceBinding setFocusType(char[][] compoundName)
           
 boolean subOrSuperOfFocus(ReferenceBinding typeBinding)
           
protected  void worked(IProgressMonitor monitor, int work)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HierarchyResolver

public HierarchyResolver(INameEnvironment nameEnvironment,
                         java.util.Map settings,
                         HierarchyBuilder builder,
                         IProblemFactory problemFactory)

HierarchyResolver

public HierarchyResolver(LookupEnvironment lookupEnvironment,
                         HierarchyBuilder builder)
Method Detail

accept

public void accept(IBinaryType binaryType,
                   PackageBinding packageBinding,
                   AccessRestriction accessRestriction)
Add an additional binary type

Specified by:
accept in interface ITypeRequestor
Parameters:
binaryType -
packageBinding -

accept

public void accept(ICompilationUnit sourceUnit,
                   AccessRestriction accessRestriction)
Add an additional compilation unit.

Specified by:
accept in interface ITypeRequestor
Parameters:
sourceUnit -

accept

public void accept(ISourceType[] sourceTypes,
                   PackageBinding packageBinding,
                   AccessRestriction accessRestriction)
Add additional source types

Specified by:
accept in interface ITypeRequestor
Parameters:
sourceTypes -
packageBinding -

resolve

public void resolve(IGenericType suppliedType)
Resolve the supertypes for the supplied source type. Inform the requestor of the resolved supertypes using: connect(ISourceType suppliedType, IGenericType superclass, IGenericType[] superinterfaces)

Parameters:
suppliedType -

resolve

public void resolve(Openable[] openables,
                    java.util.HashSet localTypes,
                    IProgressMonitor monitor)
Resolve the supertypes for the types contained in the given openables (ICompilationUnits and/or IClassFiles). Inform the requestor of the resolved supertypes for each supplied source type using: connect(ISourceType suppliedType, IGenericType superclass, IGenericType[] superinterfaces) Also inform the requestor of the supertypes of each additional requested super type which is also a source type instead of a binary type.

Parameters:
openables -
localTypes -
monitor -

setFocusType

public ReferenceBinding setFocusType(char[][] compoundName)

subOrSuperOfFocus

public boolean subOrSuperOfFocus(ReferenceBinding typeBinding)

worked

protected void worked(IProgressMonitor monitor,
                      int work)