001    /*
002     * Copyright 2010-2013 JetBrains s.r.o.
003     *
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.apache.org/licenses/LICENSE-2.0
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.jetbrains.jet.lang.resolve.scopes;
018    
019    import org.jetbrains.annotations.NotNull;
020    import org.jetbrains.annotations.TestOnly;
021    import org.jetbrains.jet.lang.descriptors.*;
022    import org.jetbrains.jet.lang.resolve.name.LabelName;
023    import org.jetbrains.jet.lang.resolve.name.Name;
024    import org.jetbrains.jet.utils.Printer;
025    
026    import java.util.Collection;
027    import java.util.Collections;
028    import java.util.List;
029    import java.util.Set;
030    
031    public abstract class JetScopeImpl implements JetScope {
032        @Override
033        public ClassifierDescriptor getClassifier(@NotNull Name name) {
034            return null;
035        }
036    
037        @Override
038        public ClassDescriptor getObjectDescriptor(@NotNull Name name) {
039            return null;
040        }
041    
042        @NotNull
043        @Override
044        public Set<ClassDescriptor> getObjectDescriptors() {
045            return Collections.emptySet();
046        }
047    
048        @NotNull
049        @Override
050        public Collection<VariableDescriptor> getProperties(@NotNull Name name) {
051            return Collections.emptySet();
052        }
053    
054        @Override
055        public VariableDescriptor getLocalVariable(@NotNull Name name) {
056            return null;
057        }
058    
059        @Override
060        public NamespaceDescriptor getNamespace(@NotNull Name name) {
061            return null;
062        }
063    
064        @NotNull
065        @Override
066        public Collection<FunctionDescriptor> getFunctions(@NotNull Name name) {
067            return Collections.emptySet();
068        }
069    
070        @NotNull
071        @Override
072        public Collection<DeclarationDescriptor> getDeclarationsByLabel(LabelName labelName) {
073            return Collections.emptyList();
074        }
075    
076        @NotNull
077        @Override
078        public Collection<DeclarationDescriptor> getAllDescriptors() {
079            return Collections.emptyList();
080        }
081    
082        @NotNull
083        @Override
084        public List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy() {
085            return Collections.emptyList();
086        }
087    
088        @NotNull
089        @Override
090        public Collection<DeclarationDescriptor> getOwnDeclaredDescriptors() {
091            return Collections.emptyList();
092        }
093    
094        // This method should not be implemented here by default: every scope class has its unique structure pattern
095        @TestOnly
096        @Override
097        public abstract void printScopeStructure(@NotNull Printer p);
098    }