本文整理汇总了Java中com.intellij.psi.stubs.StubInputStream.readUTFFast方法的典型用法代码示例。如果您正苦于以下问题:Java StubInputStream.readUTFFast方法的具体用法?Java StubInputStream.readUTFFast怎么用?Java StubInputStream.readUTFFast使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.psi.stubs.StubInputStream
的用法示例。
在下文中一共展示了StubInputStream.readUTFFast方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
public PyTargetExpressionStub deserialize(@NotNull final StubInputStream stream, final StubElement parentStub)
throws IOException {
String name = StringRef.toString(stream.readName());
String docString = stream.readUTFFast();
if (docString.isEmpty()) {
docString = null;
}
PyTargetExpressionStub.InitializerType initializerType = PyTargetExpressionStub.InitializerType.fromIndex(stream.readVarInt());
if (initializerType == PyTargetExpressionStub.InitializerType.Custom) {
final String typeName = stream.readName().getString();
for(CustomTargetExpressionStubType type: getCustomStubTypes()) {
if (type.getClass().getCanonicalName().equals(typeName)) {
CustomTargetExpressionStub stub = type.deserializeStub(stream);
return new PyTargetExpressionStubImpl(name, docString, stub, parentStub);
}
}
throw new IOException("Unknown custom stub type " + typeName);
}
QualifiedName initializer = QualifiedName.deserialize(stream);
boolean isQualified = stream.readBoolean();
return new PyTargetExpressionStubImpl(name, docString, initializerType, initializer, isQualified, parentStub);
}
示例2: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
@Override
public PsiAnnotationStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
return new PsiAnnotationStubImpl(parentStub, dataStream.readUTFFast());
}
示例3: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
@Override
public AttributeStub deserialize(@NotNull StubInputStream dataStream, ElementStub parentStub) throws IOException {
return new AttributeStub(parentStub, dataStream.readName(), dataStream.readName(), dataStream.readUTFFast());
}
示例4: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
@Override
public ElementStub deserialize(@NotNull StubInputStream dataStream, ElementStub parentStub) throws IOException {
return new ElementStub(parentStub, dataStream.readName(), dataStream.readName(),
dataStream.readVarInt(), dataStream.readBoolean(), dataStream.readName(), dataStream.readUTFFast());
}
示例5: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
@Override
public GrAnnotationStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
return new GrAnnotationStub(parentStub, dataStream.readUTFFast());
}
示例6: readNullableString
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@Nullable
public static String readNullableString(StubInputStream dataStream) throws IOException {
final boolean hasTypeText = dataStream.readBoolean();
return hasTypeText ? dataStream.readUTFFast() : null;
}
示例7: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
@Override
public PsiLiteralStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException
{
return new PsiLiteralStub(parentStub, dataStream.readUTFFast());
}
示例8: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
public DirectiveStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
return new DirectiveStubImpl(parentStub, dataStream.readName().toString(), dataStream.readUTFFast());
}
示例9: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
public AttributeStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
return new AttributeStubImpl(parentStub, dataStream.readName().toString(), dataStream.readUTFFast());
}
示例10: deserialize
import com.intellij.psi.stubs.StubInputStream; //导入方法依赖的package包/类
@NotNull
public HeaderValuePartStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
return new HeaderValuePartStubImpl(parentStub, dataStream.readUTFFast());
}