Java 类com.intellij.psi.PsiTypeCodeFragment 实例源码

项目:consulo-java    文件:ChangeClassSignatureDialog.java   
@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;
}
项目:consulo-java    文件:ChangeClassSignatureDialog.java   
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();
}
项目:intellij-ce-playground    文件:GrTableParameterInfo.java   
public PsiTypeCodeFragment getTypeFragment() {
  return myType;
}
项目:tools-idea    文件:GrTableParameterInfo.java   
public PsiTypeCodeFragment getTypeFragment() {
  return myType;
}
项目:consulo-java    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public PsiTypeCodeFragment createTypeCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical)
{
    return createTypeCodeFragment(text, context, isPhysical, 0);
}
项目:consulo-java    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public PsiTypeCodeFragment createTypeCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical, final int flags)
{
    return new PsiTypeCodeFragmentImpl(myProject, isPhysical, "fragment.java", text, flags, context);
}
项目:consulo-java    文件:ChangeClassSignatureDialog.java   
public ChangeClassSignatureDialog(@NotNull PsiClass aClass,
                                  @NotNull Map<TypeParameterInfo, PsiTypeCodeFragment> parameters,
                                  boolean hideDefaultValueColumn) {
  this(aClass, parameters.keySet(), parameters.values(), hideDefaultValueColumn);
}
项目:consulo-java    文件:ChangeClassSignatureDialog.java   
private PsiTypeCodeFragment createValueCodeFragment() {
  final JavaCodeFragmentFactory factory = JavaCodeFragmentFactory.getInstance(myProject);
  return factory.createTypeCodeFragment("", myClass.getLBrace(), true);
}