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