use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class JavaFieldStubElementType method deserialize.
@NotNull
@Override
public PsiFieldStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
StringRef name = dataStream.readName();
TypeInfo type = TypeInfo.readTYPE(dataStream);
StringRef initializerText = dataStream.readName();
byte flags = dataStream.readByte();
return new PsiFieldStubImpl(parentStub, StringRef.toString(name), type, StringRef.toString(initializerText), flags);
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class JavaFileElementType method deserialize.
@NotNull
@Override
public PsiJavaFileStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
boolean compiled = dataStream.readBoolean();
int level = dataStream.readByte();
StringRef packageName = dataStream.readName();
return new PsiJavaFileStubImpl(null, StringRef.toString(packageName), level >= 0 ? LanguageLevel.values()[level] : null, compiled);
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class JavaParameterElementType method deserialize.
@NotNull
@Override
public PsiParameterStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
StringRef name = dataStream.readName();
if (name == null)
throw new IOException("corrupted indices");
TypeInfo type = TypeInfo.readTYPE(dataStream);
byte flags = dataStream.readByte();
return new PsiParameterStubImpl(parentStub, name.toString(), type, flags);
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class GrVariableElementType method deserialize.
@NotNull
@Override
public GrVariableStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
final StringRef name = dataStream.readName();
final String[] annNames = GrStubUtils.readStringArray(dataStream);
final String typeText = GrStubUtils.readNullableString(dataStream);
return new GrVariableStub(parentStub, this, name, annNames, typeText);
}
use of com.intellij.util.io.StringRef in project intellij-community by JetBrains.
the class GrFieldElementType method deserializeFieldStub.
static GrFieldStub deserializeFieldStub(StubInputStream dataStream, StubElement parentStub) throws IOException {
StringRef ref = dataStream.readName();
final String[] annNames = GrStubUtils.readStringArray(dataStream);
final String[] namedParameters = GrStubUtils.readStringArray(dataStream);
byte flags = dataStream.readByte();
final String typeText = GrStubUtils.readNullableString(dataStream);
return new GrFieldStub(parentStub, ref, annNames, namedParameters, GrFieldStub.isEnumConstant(flags) ? GroovyElementTypes.ENUM_CONSTANT : GroovyElementTypes.FIELD, flags, typeText);
}
Aggregations