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.Nullable;
021    import org.jetbrains.annotations.TestOnly;
022    import org.jetbrains.jet.lang.descriptors.*;
023    import org.jetbrains.jet.lang.resolve.name.LabelName;
024    import org.jetbrains.jet.lang.resolve.name.Name;
025    import org.jetbrains.jet.utils.Printer;
026    
027    import java.util.Collection;
028    import java.util.Collections;
029    import java.util.List;
030    
031    public abstract class JetScopeImpl implements JetScope {
032        @Override
033        public ClassifierDescriptor getClassifier(@NotNull Name name) {
034            return null;
035        }
036    
037        @NotNull
038        @Override
039        public Collection<VariableDescriptor> getProperties(@NotNull Name name) {
040            return Collections.emptySet();
041        }
042    
043        @Override
044        public VariableDescriptor getLocalVariable(@NotNull Name name) {
045            return null;
046        }
047    
048        @Nullable
049        @Override
050        public PackageViewDescriptor getPackage(@NotNull Name name) {
051            return null;
052        }
053    
054        @NotNull
055        @Override
056        public Collection<FunctionDescriptor> getFunctions(@NotNull Name name) {
057            return Collections.emptySet();
058        }
059    
060        @NotNull
061        @Override
062        public Collection<DeclarationDescriptor> getDeclarationsByLabel(@NotNull LabelName labelName) {
063            return Collections.emptyList();
064        }
065    
066        @NotNull
067        @Override
068        public Collection<DeclarationDescriptor> getAllDescriptors() {
069            return Collections.emptyList();
070        }
071    
072        @NotNull
073        @Override
074        public List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy() {
075            return Collections.emptyList();
076        }
077    
078        @NotNull
079        @Override
080        public Collection<DeclarationDescriptor> getOwnDeclaredDescriptors() {
081            return Collections.emptyList();
082        }
083    
084        // This method should not be implemented here by default: every scope class has its unique structure pattern
085        @TestOnly
086        @Override
087        public abstract void printScopeStructure(@NotNull Printer p);
088    }