当前位置: 首页>>代码示例>>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;未经允许,请勿转载。