Java 类com.intellij.psi.stubs.NamedStub 实例源码

项目:intellij-ce-playground    文件:StubsTest.java   
private static void getStubsTreeImpl(StubElement element, StringBuffer buffer, String offset) {
  PsiElement psi = element.getPsi();
  buffer.append(offset).append("[").append(psi.toString()).
          append(element instanceof NamedStub ? " : " + ((NamedStub) element).getName() : "").
          append("]\n");
  for (StubElement stubElement : ((List<StubElement>) element.getChildrenStubs())) {
    getStubsTreeImpl(stubElement, buffer, offset + "  ");
  }
}
项目:tools-idea    文件:StubsTest.java   
private static void getStubsTreeImpl(StubElement element, StringBuffer buffer, String offset) {
  PsiElement psi = element.getPsi();
  buffer.append(offset).append("[").append(psi.toString()).
          append(element instanceof NamedStub ? " : " + ((NamedStub) element).getName() : "").
          append("]\n");
  for (StubElement stubElement : ((List<StubElement>) element.getChildrenStubs())) {
    getStubsTreeImpl(stubElement, buffer, offset + "  ");
  }
}