Java 类com.intellij.psi.impl.source.PsiCodeFragmentImpl 实例源码

项目:intellij-ce-playground    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public JavaCodeFragment createCodeBlockCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical) {
  return new PsiCodeFragmentImpl(myProject, JavaElementType.STATEMENTS, isPhysical, "fragment.java", text, context);
}
项目:tools-idea    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public JavaCodeFragment createCodeBlockCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical) {
  return new PsiCodeFragmentImpl(myProject, JavaElementType.STATEMENTS, isPhysical, "fragment.java", text, context);
}
项目:consulo-java    文件:JavaCodeFragmentFactoryImpl.java   
@NotNull
@Override
public JavaCodeFragment createCodeBlockCodeFragment(@NotNull final String text, @Nullable final PsiElement context, final boolean isPhysical)
{
    return new PsiCodeFragmentImpl(myProject, JavaElementType.STATEMENTS, isPhysical, "fragment.java", text, context);
}