org.jetbrains.jet.lang.descriptors.impl
Class SubpackagesScope

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.scopes.JetScopeImpl
      extended by org.jetbrains.jet.lang.descriptors.impl.SubpackagesScope
All Implemented Interfaces:
JetScope

public class SubpackagesScope
extends JetScopeImpl


Field Summary
 
Fields inherited from interface org.jetbrains.jet.lang.resolve.scopes.JetScope
EMPTY
 
Constructor Summary
SubpackagesScope(PackageViewDescriptor packageView)
           
 
Method Summary
 java.util.Collection<DeclarationDescriptor> getAllDescriptors()
          All visible descriptors from current scope.
 DeclarationDescriptor getContainingDeclaration()
           
 PackageViewDescriptor getPackage(Name name)
           
 void printScopeStructure(Printer p)
           
 
Methods inherited from class org.jetbrains.jet.lang.resolve.scopes.JetScopeImpl
getClassifier, getDeclarationsByLabel, getFunctions, getImplicitReceiversHierarchy, getLocalVariable, getOwnDeclaredDescriptors, getProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubpackagesScope

public SubpackagesScope(PackageViewDescriptor packageView)
Method Detail

getContainingDeclaration

@NotNull
public DeclarationDescriptor getContainingDeclaration()

getPackage

@Nullable
public PackageViewDescriptor getPackage(@NotNull
                                                 Name name)
Specified by:
getPackage in interface JetScope
Overrides:
getPackage in class JetScopeImpl

getAllDescriptors

@NotNull
public java.util.Collection<DeclarationDescriptor> getAllDescriptors()
Description copied from interface: JetScope
All visible descriptors from current scope.

Specified by:
getAllDescriptors in interface JetScope
Overrides:
getAllDescriptors in class JetScopeImpl
Returns:
All visible descriptors from current scope.

printScopeStructure

public void printScopeStructure(@NotNull
                                Printer p)
Specified by:
printScopeStructure in interface JetScope
Specified by:
printScopeStructure in class JetScopeImpl