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

项目:intellij-ce-playground    文件:JavaClassReferenceListElementType.java   
@NotNull
@Override
public PsiClassReferenceListStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
  byte role = dataStream.readByte();

  int len = dataStream.readVarInt();
  StringRef[] names = StringRef.createArray(len);
  for (int i = 0; i < names.length; i++) {
    names[i] = dataStream.readName();
  }

  PsiReferenceList.Role decodedRole = decodeRole(role);
  return new PsiClassReferenceListStubImpl(roleToElementType(decodedRole), parentStub, names, decodedRole);
}
项目:tools-idea    文件:JavaClassReferenceListElementType.java   
@NotNull
@Override
public PsiClassReferenceListStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
  byte role = dataStream.readByte();

  int len = dataStream.readVarInt();
  StringRef[] names = StringRef.createArray(len);
  for (int i = 0; i < names.length; i++) {
    names[i] = dataStream.readName();
  }

  PsiReferenceList.Role decodedRole = decodeRole(role);
  return new PsiClassReferenceListStubImpl(roleToElementType(decodedRole), parentStub, names, decodedRole);
}
项目:consulo-java    文件:JavaClassReferenceListElementType.java   
@NotNull
@Override
public PsiClassReferenceListStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException
{
    int len = dataStream.readVarInt();
    String[] names = ArrayUtil.newStringArray(len);
    for(int i = 0; i < names.length; i++)
    {
        names[i] = StringRef.toString(dataStream.readName());
    }
    return new PsiClassReferenceListStubImpl(this, parentStub, names);
}
项目:intellij-ce-playground    文件:JavaClassReferenceListElementType.java   
@Override
public PsiClassReferenceListStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub) {
  JavaClassReferenceListElementType type = (JavaClassReferenceListElementType)node.getTokenType();
  return new PsiClassReferenceListStubImpl(type, parentStub, getTexts(tree, node), elementTypeToRole(type));
}
项目:tools-idea    文件:JavaClassReferenceListElementType.java   
@Override
public PsiClassReferenceListStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub) {
  JavaClassReferenceListElementType type = (JavaClassReferenceListElementType)node.getTokenType();
  return new PsiClassReferenceListStubImpl(type, parentStub, getTexts(tree, node), elementTypeToRole(type));
}
项目:consulo-java    文件:JavaClassReferenceListElementType.java   
@Override
public PsiClassReferenceListStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub)
{
    JavaClassReferenceListElementType type = (JavaClassReferenceListElementType) node.getTokenType();
    return new PsiClassReferenceListStubImpl(type, parentStub, getTexts(tree, node));
}