update copyright
[fedora-idea.git] / java / openapi / src / com / intellij / psi / HierarchicalMethodSignature.java
blob22520b1fa6a9b0d396cc84d16df4da3032723806
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;
18 import com.intellij.psi.util.MethodSignatureBackedByPsiMethod;
19 import org.jetbrains.annotations.NotNull;
21 import java.util.List;
23 /**
24 * Data structure which allows efficient retrieval of super methods for a Java method.
26 * @author ven
27 * @since 5.1
29 public abstract class HierarchicalMethodSignature extends MethodSignatureBackedByPsiMethod {
31 public HierarchicalMethodSignature(final MethodSignatureBackedByPsiMethod signature) {
32 super(signature.getMethod(), signature.getSubstitutor(), signature.isRaw(),
33 signature.getParameterTypes(), signature.getTypeParameters());
36 /**
37 * Returns the list of super method signatures for the specified signature.
39 * @return the super method signature list.
40 * Note that the list may include signatures for which isSubsignature() check returns false, but erasures are equal
42 @NotNull public abstract List<HierarchicalMethodSignature> getSuperSignatures();