本文整理汇总了Java中com.intellij.psi.PsiTypeCodeFragment类的典型用法代码示例。如果您正苦于以下问题:Java PsiTypeCodeFragment类的具体用法?Java PsiTypeCodeFragment怎么用?Java PsiTypeCodeFragment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PsiTypeCodeFragment类属于com.intellij.psi包,在下文中一共展示了PsiTypeCodeFragment类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initTypeCodeFragment
import com.intellij.psi.PsiTypeCodeFragment; //导入依赖的package包/类
@NotNull
private static List<PsiTypeCodeFragment> initTypeCodeFragment(int length) {
final List<PsiTypeCodeFragment> result = new ArrayList<PsiTypeCodeFragment>();
for (int i = 0; i < length; i++) {
result.add(null);
}
return result;
}
示例2: ChangeClassSignatureDialog
import com.intellij.psi.PsiTypeCodeFragment; //导入依赖的package包/类
public ChangeClassSignatureDialog(@NotNull PsiClass aClass,
@NotNull Collection<TypeParameterInfo> typeParameterInfos,
@NotNull Collection<PsiTypeCodeFragment> typeCodeFragments,
boolean hideDefaultValueColumn) {
super(aClass.getProject(), true);
myHideDefaultValueColumn = hideDefaultValueColumn;
setTitle(REFACTORING_NAME);
myClass = aClass;
myProject = myClass.getProject();
myOriginalParameters = myClass.getTypeParameters();
myTypeParameterInfos = new ArrayList<TypeParameterInfo>(typeParameterInfos);
myTypeCodeFragments = new ArrayList<PsiTypeCodeFragment>(typeCodeFragments);
myTableModel = new MyTableModel();
init();
}
示例3: getTypeFragment
import com.intellij.psi.PsiTypeCodeFragment; //导入依赖的package包/类
public PsiTypeCodeFragment getTypeFragment() {
return myType;
}
示例4: createTypeCodeFragment
import com.intellij.psi.PsiTypeCodeFragment; //导入依赖的package包/类
@NotNull
@Override
public PsiTypeCodeFragment createTypeCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical)
{
return createTypeCodeFragment(text, context, isPhysical, 0);
}
示例5: createValueCodeFragment
import com.intellij.psi.PsiTypeCodeFragment; //导入依赖的package包/类
private PsiTypeCodeFragment createValueCodeFragment() {
final JavaCodeFragmentFactory factory = JavaCodeFragmentFactory.getInstance(myProject);
return factory.createTypeCodeFragment("", myClass.getLBrace(), true);
}