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

项目:intellij-ce-playground    文件:DebugUtil.java   
public static void stubTreeToBuffer(final Stub node, final Appendable buffer, final int indent) {
  StringUtil.repeatSymbol(buffer, ' ', indent);
  try {
    final ObjectStubSerializer stubType = node.getStubType();
    if (stubType != null) {
      buffer.append(stubType.toString()).append(':');
    }
    buffer.append(node.toString()).append('\n');

    @SuppressWarnings({"unchecked"})
    final List<? extends Stub> children = node.getChildrenStubs();
    for (final Stub child : children) {
      stubTreeToBuffer(child, buffer, indent + 2);
    }
  }
  catch (IOException e) {
    LOG.error(e);
  }
}
项目:tools-idea    文件:DebugUtil.java   
public static void stubTreeToBuffer(final Stub node, final Appendable buffer, final int indent) {
  StringUtil.repeatSymbol(buffer, ' ', indent);
  try {
    final ObjectStubSerializer stubType = node.getStubType();
    if (stubType != null) {
      buffer.append(stubType.toString()).append(':');
    }
    buffer.append(node.toString()).append('\n');

    @SuppressWarnings({"unchecked"})
    final List<? extends Stub> children = node.getChildrenStubs();
    for (final Stub child : children) {
      stubTreeToBuffer(child, buffer, indent + 2);
    }
  }
  catch (IOException e) {
    LOG.error(e);
  }
}
项目:consulo    文件:DebugUtil.java   
public static void stubTreeToBuffer(final Stub node, final Appendable buffer, final int indent) {
  StringUtil.repeatSymbol(buffer, ' ', indent);
  try {
    final ObjectStubSerializer stubType = node.getStubType();
    if (stubType != null) {
      buffer.append(stubType.toString()).append(':');
    }
    buffer.append(node.toString()).append('\n');

    @SuppressWarnings({"unchecked"}) final List<? extends Stub> children = node.getChildrenStubs();
    for (final Stub child : children) {
      stubTreeToBuffer(child, buffer, indent + 2);
    }
  }
  catch (IOException e) {
    LOG.error(e);
  }
}
项目:intellij-ce-playground    文件:AttributeStub.java   
@Override
public ObjectStubSerializer getStubType() {
  return AttributeStubSerializer.INSTANCE;
}
项目:intellij-ce-playground    文件:FileStub.java   
@Override
public ObjectStubSerializer getStubType() {
  return FileStubSerializer.INSTANCE;
}
项目:intellij-ce-playground    文件:ElementStub.java   
@Override
public ObjectStubSerializer getStubType() {
  return ElementStubSerializer.INSTANCE;
}
项目:tools-idea    文件:AttributeStub.java   
@Override
public ObjectStubSerializer getStubType() {
  return AttributeStubSerializer.INSTANCE;
}
项目:tools-idea    文件:FileStub.java   
@Override
public ObjectStubSerializer getStubType() {
  return FileStubSerializer.INSTANCE;
}
项目:tools-idea    文件:ElementStub.java   
@Override
public ObjectStubSerializer getStubType() {
  return ElementStubSerializer.INSTANCE;
}
项目:consulo-xml    文件:AttributeStub.java   
@Override
public ObjectStubSerializer getStubType()
{
    return AttributeStubSerializer.INSTANCE;
}
项目:consulo-xml    文件:FileStub.java   
@Override
public ObjectStubSerializer getStubType()
{
    return FileStubSerializer.INSTANCE;
}
项目:consulo-xml    文件:ElementStub.java   
@Override
public ObjectStubSerializer getStubType()
{
    return ElementStubSerializer.INSTANCE;
}