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

项目:intellij-ce-playground    文件:JavaClassElementType.java   
@Override
public PsiClass createPsi(@NotNull final ASTNode node) {
  if (node instanceof EnumConstantInitializerElement) {
    return new PsiEnumConstantInitializerImpl(node);
  }
  else if (node instanceof AnonymousClassElement) {
    return new PsiAnonymousClassImpl(node);
  }

  return new PsiClassImpl(node);
}
项目:tools-idea    文件:JavaClassElementType.java   
@Override
public PsiClass createPsi(@NotNull final ASTNode node) {
  if (node instanceof EnumConstantInitializerElement) {
    return new PsiEnumConstantInitializerImpl(node);
  }
  else if (node instanceof AnonymousClassElement) {
    return new PsiAnonymousClassImpl(node);
  }

  return new PsiClassImpl(node);
}
项目:consulo-java    文件:JavaClassElementType.java   
@Override
public PsiClass createPsi(@NotNull final ASTNode node)
{
    if(node instanceof EnumConstantInitializerElement)
    {
        return new PsiEnumConstantInitializerImpl(node);
    }
    else if(node instanceof AnonymousClassElement)
    {
        return new PsiAnonymousClassImpl(node);
    }

    return new PsiClassImpl(node);
}