update copyright
[fedora-idea.git] / java / java-impl / src / com / intellij / psi / impl / light / LightEmptyImplementsList.java
blob2b97f5f7537bae02fed20bdbb74b740068baf799
1 /*
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.
16 package com.intellij.psi.impl.light;
18 import com.intellij.openapi.fileTypes.StdFileTypes;
19 import com.intellij.psi.*;
20 import org.jetbrains.annotations.NotNull;
22 /**
23 * @author max
25 public class LightEmptyImplementsList extends LightElement implements PsiReferenceList {
26 public LightEmptyImplementsList(PsiManager manager) {
27 super(manager, StdFileTypes.JAVA.getLanguage());
30 public String toString() {
31 return "PsiReferenceList";
34 public String getText() {
35 return "";
38 public void accept(@NotNull PsiElementVisitor visitor) {
39 if (visitor instanceof JavaElementVisitor) {
40 ((JavaElementVisitor)visitor).visitReferenceList(this);
42 else {
43 visitor.visitElement(this);
47 public PsiElement copy() {
48 return this;
51 @NotNull
52 public PsiJavaCodeReferenceElement[] getReferenceElements() {
53 return PsiJavaCodeReferenceElement.EMPTY_ARRAY;
56 @NotNull
57 public PsiClassType[] getReferencedTypes() {
58 return PsiClassType.EMPTY_ARRAY;
61 public Role getRole() {
62 return Role.IMPLEMENTS_LIST;