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

项目: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);
    }
}
项目:consulo-java    文件:VariableLookupItem.java   
private static PsiExpression getInitializer(@NotNull PsiVariable var)
{
    PsiElement navigationElement = var.getNavigationElement();
    if(navigationElement instanceof PsiVariable)
    {
        var = (PsiVariable) navigationElement;
    }
    return var instanceof PsiFieldImpl ? ((PsiFieldImpl) var).getDetachedInitializer() : var.getInitializer();
}