Java 类com.intellij.psi.impl.source.tree.java.EnumConstantElement 实例源码

项目:intellij-ce-playground    文件:JavaFieldStubElementType.java   
@Override
public PsiField createPsi(@NotNull final ASTNode node) {
  if (node instanceof EnumConstantElement) {
    return new PsiEnumConstantImpl(node);
  }
  else {
    return new PsiFieldImpl(node);
  }
}
项目:tools-idea    文件:JavaFieldStubElementType.java   
@Override
public PsiField createPsi(@NotNull final ASTNode node) {
  if (node instanceof EnumConstantElement) {
    return new PsiEnumConstantImpl(node);
  }
  else {
    return new PsiFieldImpl(node);
  }
}
项目:consulo-java    文件:JavaFieldStubElementType.java   
@Override
public PsiField createPsi(@NotNull final ASTNode node)
{
    if(node instanceof EnumConstantElement)
    {
        return new PsiEnumConstantImpl(node);
    }
    else
    {
        return new PsiFieldImpl(node);
    }
}