public abstract class JetScopeImpl extends java.lang.Object implements JetScope
Constructor and Description |
---|
JetScopeImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<DeclarationDescriptor> |
getAllDescriptors()
All visible descriptors from current scope.
|
ClassifierDescriptor |
getClassifier(Name name)
Should not return object (class object or enum entry) class descriptors.
|
java.util.Collection<DeclarationDescriptor> |
getDeclarationsByLabel(LabelName labelName) |
java.util.Collection<FunctionDescriptor> |
getFunctions(Name name) |
java.util.List<ReceiverParameterDescriptor> |
getImplicitReceiversHierarchy()
Adds receivers to the list in order of locality, so that the closest (the most local) receiver goes first
|
VariableDescriptor |
getLocalVariable(Name name) |
NamespaceDescriptor |
getNamespace(Name name) |
ClassDescriptor |
getObjectDescriptor(Name name) |
java.util.Set<ClassDescriptor> |
getObjectDescriptors() |
java.util.Collection<DeclarationDescriptor> |
getOwnDeclaredDescriptors() |
java.util.Collection<VariableDescriptor> |
getProperties(Name name) |
PropertyDescriptor |
getPropertyByFieldReference(Name fieldName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContainingDeclaration
public JetScopeImpl()
public ClassifierDescriptor getClassifier(@NotNull Name name)
JetScope
getClassifier
in interface JetScope
public ClassDescriptor getObjectDescriptor(@NotNull Name name)
getObjectDescriptor
in interface JetScope
@NotNull public java.util.Set<ClassDescriptor> getObjectDescriptors()
getObjectDescriptors
in interface JetScope
@NotNull public java.util.Collection<VariableDescriptor> getProperties(@NotNull Name name)
getProperties
in interface JetScope
public VariableDescriptor getLocalVariable(@NotNull Name name)
getLocalVariable
in interface JetScope
public NamespaceDescriptor getNamespace(@NotNull Name name)
getNamespace
in interface JetScope
@NotNull public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull Name name)
getFunctions
in interface JetScope
@NotNull public java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(LabelName labelName)
getDeclarationsByLabel
in interface JetScope
public PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName)
getPropertyByFieldReference
in interface JetScope
fieldName
- includes the "$"@NotNull public java.util.Collection<DeclarationDescriptor> getAllDescriptors()
JetScope
getAllDescriptors
in interface JetScope
@NotNull public java.util.List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy()
JetScope
getImplicitReceiversHierarchy
in interface JetScope
@NotNull public java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
getOwnDeclaredDescriptors
in interface JetScope