use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class GrStubFileElementType method deserialize.
@NotNull
@Override
public GrFileStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
StringRef name = dataStream.readName();
boolean isScript = dataStream.readBoolean();
return new GrFileStub(name, isScript, GrStubUtils.readStringArray(dataStream));
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class JavaImportStatementElementType method deserialize.
@NotNull
@Override
public PsiImportStatementStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
final byte flags = dataStream.readByte();
final StringRef refText = dataStream.readName();
return new PsiImportStatementStubImpl(parentStub, refText, flags);
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class JavaMethodElementType method deserialize.
@NotNull
@Override
public PsiMethodStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException {
StringRef name = dataStream.readName();
final TypeInfo type = TypeInfo.readTYPE(dataStream);
byte flags = dataStream.readByte();
final StringRef defaultMethodValue = PsiMethodStubImpl.isAnnotationMethod(flags) ? dataStream.readName() : null;
return new PsiMethodStubImpl(parentStub, StringRef.toString(name), type, flags, StringRef.toString(defaultMethodValue));
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class QualifiedName method deserialize.
@Nullable
public static QualifiedName deserialize(StubInputStream dataStream) throws IOException {
QualifiedName qName;
int size = dataStream.readVarInt();
if (size == 0) {
qName = null;
} else {
qName = new QualifiedName(size);
for (int i = 0; i < size; i++) {
final StringRef name = dataStream.readName();
qName.myComponents.add(name == null ? null : name.getString());
}
}
return qName;
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class GrMethodElementType method deserialize.
@Override
@NotNull
public GrMethodStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
StringRef ref = dataStream.readName();
final String[] annNames = GrStubUtils.readStringArray(dataStream);
String[] namedParameters = GrStubUtils.readStringArray(dataStream);
String typeText = GrStubUtils.readNullableString(dataStream);
final byte flags = dataStream.readByte();
return new GrMethodStub(parentStub, ref, annNames, namedParameters, this, typeText, flags);
}
Aggregations