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
017package org.jetbrains.jet.lang.resolve.lazy.declarations;
018
019import org.jetbrains.annotations.NotNull;
020import org.jetbrains.jet.lang.psi.JetClassOrObject;
021import org.jetbrains.jet.lang.psi.JetDeclaration;
022import org.jetbrains.jet.lang.psi.JetNamedFunction;
023import org.jetbrains.jet.lang.psi.JetProperty;
024import org.jetbrains.jet.lang.resolve.name.FqName;
025import org.jetbrains.jet.lang.resolve.name.Name;
026
027import java.util.Collection;
028import java.util.Collections;
029import java.util.List;
030
031public class EmptyPackageMemberDeclarationProvider implements PackageMemberDeclarationProvider {
032
033    public static final EmptyPackageMemberDeclarationProvider INSTANCE = new EmptyPackageMemberDeclarationProvider();
034
035    private EmptyPackageMemberDeclarationProvider() {}
036
037    @Override
038    public boolean isPackageDeclared(@NotNull Name name) {
039        return false;
040    }
041
042    @Override
043    public Collection<FqName> getAllDeclaredPackages() {
044        return Collections.emptyList();
045    }
046
047    @Override
048    public List<JetDeclaration> getAllDeclarations() {
049        return Collections.emptyList();
050    }
051
052    @NotNull
053    @Override
054    public Collection<JetNamedFunction> getFunctionDeclarations(@NotNull Name name) {
055        return Collections.emptyList();
056    }
057
058    @NotNull
059    @Override
060    public Collection<JetProperty> getPropertyDeclarations(@NotNull Name name) {
061        return Collections.emptyList();
062    }
063
064    @NotNull
065    @Override
066    public Collection<JetClassOrObject> getClassOrObjectDeclarations(@NotNull Name name) {
067        return Collections.emptyList();
068    }
069}