當前位置: 首頁>>代碼示例>>Java>>正文


Java LightTypeParameterListBuilder類代碼示例

本文整理匯總了Java中com.intellij.psi.impl.light.LightTypeParameterListBuilder的典型用法代碼示例。如果您正苦於以下問題:Java LightTypeParameterListBuilder類的具體用法?Java LightTypeParameterListBuilder怎麽用?Java LightTypeParameterListBuilder使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


LightTypeParameterListBuilder類屬於com.intellij.psi.impl.light包,在下文中一共展示了LightTypeParameterListBuilder類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: GrReflectedMethodImpl

import com.intellij.psi.impl.light.LightTypeParameterListBuilder; //導入依賴的package包/類
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;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:18,代碼來源:GrReflectedMethodImpl.java

示例2: GrLightMethodBuilder

import com.intellij.psi.impl.light.LightTypeParameterListBuilder; //導入依賴的package包/類
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);
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:9,代碼來源:GrLightMethodBuilder.java

示例3: LombokLightMethodBuilder

import com.intellij.psi.impl.light.LightTypeParameterListBuilder; //導入依賴的package包/類
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);
}
 
開發者ID:mplushnikov,項目名稱:lombok-intellij-plugin,代碼行數:9,代碼來源:LombokLightMethodBuilder.java

示例4: getTypeParameterList

import com.intellij.psi.impl.light.LightTypeParameterListBuilder; //導入依賴的package包/類
@Override
public PsiTypeParameterList getTypeParameterList() {
  return new LightTypeParameterListBuilder(myManager, getLanguage());
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:AndroidLightClassBase.java

示例5: getTypeParameterList

import com.intellij.psi.impl.light.LightTypeParameterListBuilder; //導入依賴的package包/類
@Override
@NotNull
public LightTypeParameterListBuilder getTypeParameterList() {
  return myTypeParameterList;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:GrLightMethodBuilder.java

示例6: addTypeParameter

import com.intellij.psi.impl.light.LightTypeParameterListBuilder; //導入依賴的package包/類
public LightMethodBuilder addTypeParameter(PsiTypeParameter parameter) {
  ((LightTypeParameterListBuilder) getTypeParameterList()).addParameter(parameter);
  return this;
}
 
開發者ID:mplushnikov,項目名稱:lombok-intellij-plugin,代碼行數:5,代碼來源:LombokLightMethodBuilder.java


注:本文中的com.intellij.psi.impl.light.LightTypeParameterListBuilder類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。