2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 package com
.intellij
.psi
.impl
;
22 import com
.intellij
.psi
.PsiClass
;
23 import com
.intellij
.psi
.PsiField
;
24 import com
.intellij
.psi
.PsiMethod
;
25 import com
.intellij
.psi
.search
.GlobalSearchScope
;
26 import com
.intellij
.psi
.search
.PsiShortNamesCache
;
27 import com
.intellij
.util
.ArrayUtil
;
28 import com
.intellij
.util
.containers
.HashSet
;
29 import org
.jetbrains
.annotations
.NonNls
;
30 import org
.jetbrains
.annotations
.NotNull
;
32 class EmptyShortNamesCacheImpl
extends PsiShortNamesCache
{
35 public PsiClass
[] getClassesByName(@NotNull String name
, @NotNull GlobalSearchScope scope
) {
36 return PsiClass
.EMPTY_ARRAY
;
40 public String
[] getAllClassNames() {
41 return ArrayUtil
.EMPTY_STRING_ARRAY
;
44 public void getAllClassNames(@NotNull HashSet
<String
> dest
) {
49 public PsiMethod
[] getMethodsByName(@NotNull String name
, @NotNull GlobalSearchScope scope
) {
50 return PsiMethod
.EMPTY_ARRAY
;
54 public PsiMethod
[] getMethodsByNameIfNotMoreThan(@NonNls @NotNull final String name
, @NotNull final GlobalSearchScope scope
, final int maxCount
) {
55 return PsiMethod
.EMPTY_ARRAY
;
59 public String
[] getAllMethodNames() {
60 return ArrayUtil
.EMPTY_STRING_ARRAY
;
63 public void getAllMethodNames(@NotNull HashSet
<String
> set
) {
68 public PsiField
[] getFieldsByName(@NotNull String name
, @NotNull GlobalSearchScope scope
) {
69 return PsiField
.EMPTY_ARRAY
;
73 public String
[] getAllFieldNames() {
74 return ArrayUtil
.EMPTY_STRING_ARRAY
;
77 public void getAllFieldNames(@NotNull HashSet
<String
> set
) {