Java 类com.intellij.psi.impl.light.LightTypeParameter 实例源码

项目:intellij-ce-playground    文件:GrMethodWrapper.java   
protected GrMethodWrapper(PsiMethod method, PsiSubstitutor substitutor) {
  super(method.getManager(), method.getName());
  myWrappedMethod = method;
  setContainingClass(method.getContainingClass());
  getModifierList().copyModifiers(method);
  getParameterList().copyParameters(method, substitutor, this);
  for (PsiTypeParameter parameter : method.getTypeParameters()) {
    getTypeParameterList().addParameter(new LightTypeParameter(parameter));
  }
  if (method instanceof OriginInfoAwareElement) {
    setOriginInfo(((OriginInfoAwareElement)method).getOriginInfo());
  }

  setReturnType(TYPE_MARKER);
}
项目:consulo-java    文件:PsiSubstitutorImpl.java   
private boolean containsInMap(PsiTypeParameter typeParameter)
{
    if(typeParameter instanceof LightTypeParameter && ((LightTypeParameter) typeParameter).useDelegateToSubstitute())
    {
        typeParameter = ((LightTypeParameter) typeParameter).getDelegate();
    }
    return mySubstitutionMap.containsKey(typeParameter);
}
项目:consulo-java    文件:PsiSubstitutorImpl.java   
private PsiType getFromMap(@NotNull PsiTypeParameter typeParameter)
{
    if(typeParameter instanceof LightTypeParameter && ((LightTypeParameter) typeParameter).useDelegateToSubstitute())
    {
        typeParameter = ((LightTypeParameter) typeParameter).getDelegate();
    }
    return mySubstitutionMap.get(typeParameter);
}
项目:intellij-ce-playground    文件:PsiSubstitutorImpl.java   
private boolean containsInMap(PsiTypeParameter typeParameter) {
  if (typeParameter instanceof LightTypeParameter && ((LightTypeParameter)typeParameter).useDelegateToSubstitute()) {
    typeParameter = ((LightTypeParameter)typeParameter).getDelegate();
  }
  return mySubstitutionMap.containsKey(typeParameter);
}
项目:intellij-ce-playground    文件:PsiSubstitutorImpl.java   
private PsiType getFromMap(@NotNull PsiTypeParameter typeParameter) {
  if (typeParameter instanceof LightTypeParameter && ((LightTypeParameter)typeParameter).useDelegateToSubstitute()) {
    typeParameter = ((LightTypeParameter)typeParameter).getDelegate();
  }
  return mySubstitutionMap.get(typeParameter);
}
项目:tools-idea    文件:PsiSubstitutorImpl.java   
private boolean containsInMap(PsiTypeParameter typeParameter) {
  if (typeParameter instanceof LightTypeParameter) {
    typeParameter = ((LightTypeParameter)typeParameter).getDelegate();
  }
  return mySubstitutionMap.containsKey(typeParameter);
}
项目:tools-idea    文件:PsiSubstitutorImpl.java   
private PsiType getFromMap(PsiTypeParameter typeParameter) {
  if (typeParameter instanceof LightTypeParameter) {
    typeParameter = ((LightTypeParameter)typeParameter).getDelegate();
  }
  return mySubstitutionMap.get(typeParameter);
}