Java 类com.intellij.psi.impl.java.stubs.JavaStubElementType 实例源码

项目:intellij-ce-playground    文件:JavaParserDefinition.java   
@Override
@NotNull
public PsiElement createElement(final ASTNode node) {
  final IElementType type = node.getElementType();
  if (type instanceof JavaStubElementType) {
    return ((JavaStubElementType)type).createPsi(node);
  }

  throw new IllegalStateException("Incorrect node for JavaParserDefinition: " + node + " (" + type + ")");
}
项目:tools-idea    文件:JavaParserDefinition.java   
@Override
@NotNull
public PsiElement createElement(final ASTNode node) {
  final IElementType type = node.getElementType();
  if (type instanceof JavaStubElementType) {
    return ((JavaStubElementType)type).createPsi(node);
  }

  throw new IllegalStateException("Incorrect node for JavaParserDefinition: " + node + " (" + type + ")");
}
项目:consulo-java    文件:JavaParserDefinition.java   
@RequiredReadAction
@Override
@NotNull
public PsiElement createElement(@NotNull final ASTNode node)
{
    final IElementType type = node.getElementType();
    if(type instanceof JavaStubElementType)
    {
        return ((JavaStubElementType) type).createPsi(node);
    }

    throw new IllegalStateException("Incorrect node for JavaParserDefinition: " + node + " (" + type + ")");
}