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

项目:intellij-ce-playground    文件:GrReflectedMethodImpl.java   
public GrReflectedMethodImpl(GrMethod baseMethod, GrParameter[] parameters, int optionalParams, PsiClassType categoryType) {
  super(baseMethod.getManager(), baseMethod.getLanguage(), baseMethod.getName(),
        new GrLightParameterListBuilder(baseMethod.getManager(), baseMethod.getLanguage()),
        new GrLightModifierList(baseMethod), new LightReferenceListBuilder(baseMethod.getManager(), baseMethod.getLanguage(), null),
        new LightTypeParameterListBuilder(baseMethod.getManager(), baseMethod.getLanguage())
  );

  initParameterList(parameters, optionalParams, categoryType);
  initTypeParameterList(baseMethod);
  initModifiers(baseMethod, categoryType != null);
  initThrowsList(baseMethod);
  setContainingClass(baseMethod.getContainingClass());
  setMethodReturnType(baseMethod.getReturnType());
  setConstructor(baseMethod.isConstructor());

  myBaseMethod = baseMethod;
}
项目:tools-idea    文件:GrReflectedMethodImpl.java   
public GrReflectedMethodImpl(GrMethod baseMethod, GrParameter[] parameters, int optionalParams, PsiClassType categoryType) {
  super(baseMethod.getManager(), baseMethod.getLanguage(), baseMethod.getName(),
        new GrLightParameterListBuilder(baseMethod.getManager(), baseMethod.getLanguage()),
        new GrLightModifierList(baseMethod), new LightReferenceListBuilder(baseMethod.getManager(), baseMethod.getLanguage(), null),
        new LightTypeParameterListBuilder(baseMethod.getManager(), baseMethod.getLanguage())
  );

  initParameterList(parameters, optionalParams, categoryType);
  initTypeParameterList(baseMethod);
  initModifiers(baseMethod, categoryType != null);
  initThrowsList(baseMethod);
  setContainingClass(baseMethod.getContainingClass());
  setMethodReturnType(baseMethod.getReturnType());
  setConstructor(baseMethod.isConstructor());

  myBaseMethod = baseMethod;
}
项目:intellij-ce-playground    文件:GrLightMethodBuilder.java   
public GrLightMethodBuilder(PsiManager manager, String name) {
  super(manager, GroovyLanguage.INSTANCE);
  myName = name;
  myModifierList = new GrLightModifierList(this);
  myParameterList = new GrLightParameterListBuilder(manager, GroovyLanguage.INSTANCE);
  myTypeParameterList = new LightTypeParameterListBuilder(manager, GroovyLanguage.INSTANCE);
  myThrowsList = new LightReferenceListBuilder(manager, GroovyLanguage.INSTANCE, PsiReferenceList.Role.THROWS_LIST);
}
项目:lombok-intellij-plugin    文件:LombokLightMethodBuilder.java   
public LombokLightMethodBuilder(@NotNull PsiManager manager, @NotNull String name) {
  super(manager, JavaLanguage.INSTANCE, name,
    new LombokLightParameterListBuilder(manager, JavaLanguage.INSTANCE),
    new LombokLightModifierList(manager, JavaLanguage.INSTANCE),
    new LombokLightReferenceListBuilder(manager, JavaLanguage.INSTANCE, PsiReferenceList.Role.THROWS_LIST),
    new LightTypeParameterListBuilder(manager, JavaLanguage.INSTANCE));
  setBaseIcon(LombokIcons.METHOD_ICON);
}
项目:intellij-ce-playground    文件:AndroidLightClassBase.java   
@Override
public PsiTypeParameterList getTypeParameterList() {
  return new LightTypeParameterListBuilder(myManager, getLanguage());
}
项目:intellij-ce-playground    文件:GrLightMethodBuilder.java   
@Override
@NotNull
public LightTypeParameterListBuilder getTypeParameterList() {
  return myTypeParameterList;
}
项目:lombok-intellij-plugin    文件:LombokLightMethodBuilder.java   
public LightMethodBuilder addTypeParameter(PsiTypeParameter parameter) {
  ((LightTypeParameterListBuilder) getTypeParameterList()).addParameter(parameter);
  return this;
}