com.intellij.psi.stubs.StubInputStream Java Examples
The following examples show how to use
com.intellij.psi.stubs.StubInputStream.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: QualifiedName.java From consulo with Apache License 2.0 | 6 votes |
@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; }
Example #2
Source File: PsiModuleStubElementType.java From reasonml-idea-plugin with MIT License | 6 votes |
@NotNull public PsiModuleStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException { StringRef moduleName = dataStream.readName(); String path = dataStream.readUTFFast(); boolean isComponent = dataStream.readBoolean(); boolean isInterface = dataStream.readBoolean(); assert moduleName != null; String alias = null; boolean isAlias = dataStream.readBoolean(); if (isAlias) { alias = dataStream.readUTFFast(); } return new PsiModuleStub(parentStub, this, moduleName, path, alias, isComponent, isInterface); }
Example #3
Source File: CSharpBaseVariableStubElementType.java From consulo-csharp with Apache License 2.0 | 6 votes |
@Nonnull @Override public CSharpVariableDeclStub<V> deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { int otherModifierMask = stubInputStream.readVarInt(); String parentQName = null; if(supportsParentQName()) { parentQName = StringRef.toString(stubInputStream.readName()); } String initializerText = null; if(supportsInitializer(otherModifierMask)) { initializerText = StringRef.toString(stubInputStream.readName()); } return new CSharpVariableDeclStub<>(stubElement, this, parentQName, otherModifierMask, initializerText); }
Example #4
Source File: CSharpMethodStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpMethodDeclStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef qname = stubInputStream.readName(); int otherModifierMask = stubInputStream.readVarInt(); int operatorIndex = stubInputStream.readVarInt(); return new CSharpMethodDeclStub(stubElement, StringRef.toString(qname), otherModifierMask, operatorIndex); }
Example #5
Source File: CSharpArrayTypeStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpWithIntValueStub<CSharpArrayType> deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { int i = stubInputStream.readVarInt(); return new CSharpWithIntValueStub<>(stubElement, this, i); }
Example #6
Source File: CSharpIndexMethodStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpIndexMethodDeclStub deserialize(@Nonnull StubInputStream inputStream, StubElement stubElement) throws IOException { StringRef qname = inputStream.readName(); return new CSharpIndexMethodDeclStub(stubElement, StringRef.toString(qname)); }
Example #7
Source File: CSharpIdentifierStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpIdentifierStub deserialize(@Nonnull StubInputStream dataStream, StubElement parentStub) throws IOException { StringRef nameRef = dataStream.readName(); return new CSharpIdentifierStub(parentStub, this, nameRef); }
Example #8
Source File: CSharpConversionMethodStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpMethodDeclStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef qname = stubInputStream.readName(); return new CSharpMethodDeclStub(stubElement, this, StringRef.toString(qname), 0, -1); }
Example #9
Source File: CSharpGenericConstraintStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpWithStringValueStub<CSharpGenericConstraint> deserialize(@Nonnull StubInputStream inputStream, StubElement stubElement) throws IOException { StringRef text = inputStream.readName(); return new CSharpWithStringValueStub<CSharpGenericConstraint>(stubElement, this, text); }
Example #10
Source File: CSharpNamespaceStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpNamespaceDeclStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef referenceTextRef = stubInputStream.readName(); return new CSharpNamespaceDeclStub(stubElement, this, referenceTextRef); }
Example #11
Source File: CSharpXAccessorStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpXXXAccessorStub deserialize(@Nonnull StubInputStream inputStream, StubElement stubElement) throws IOException { int otherModifiers = inputStream.readVarInt(); return new CSharpXXXAccessorStub(stubElement, otherModifiers); }
Example #12
Source File: CSharpReferenceExpressionStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpReferenceExpressionStub deserialize(@Nonnull StubInputStream dataStream, StubElement parentStub) throws IOException { StringRef referenceText = dataStream.readName(); int kind = dataStream.readVarInt(); int memberAccessType = dataStream.readVarInt(); boolean global = dataStream.readBoolean(); return new CSharpReferenceExpressionStub(parentStub, this, StringRef.toString(referenceText), kind, memberAccessType, global); }
Example #13
Source File: CSharpNativeTypeStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpWithIntValueStub<CSharpNativeType> deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { int index = stubInputStream.readVarInt(); return new CSharpWithIntValueStub<CSharpNativeType>(stubElement, this, index); }
Example #14
Source File: CSharpModifierListStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpModifierListStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { int modifierMask = stubInputStream.readVarInt(); return new CSharpModifierListStub(stubElement, this, modifierMask); }
Example #15
Source File: CSharpGenericConstraintKeywordValueStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpWithIntValueStub<CSharpGenericConstraintKeywordValue> deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { int index = stubInputStream.readVarInt(); return new CSharpWithIntValueStub<CSharpGenericConstraintKeywordValue>(stubElement, this, index); }
Example #16
Source File: CSharpConstructorStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpMethodDeclStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef qname = stubInputStream.readName(); int otherModifierMask = stubInputStream.readVarInt(); return new CSharpMethodDeclStub(stubElement, this, StringRef.toString(qname), otherModifierMask, -1); }
Example #17
Source File: CSharpUsingNamespaceStatementStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpWithStringValueStub<CSharpUsingNamespaceStatement> deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef referenceText = stubInputStream.readName(); return new CSharpWithStringValueStub<CSharpUsingNamespaceStatement>(stubElement, this, referenceText); }
Example #18
Source File: CSharpTypeListElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpTypeListStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { byte value = stubInputStream.readByte(); String[] refs = new String[value]; for(int i = 0; i < value; i++) { refs[i] = StringRef.toString(stubInputStream.readName()); } return new CSharpTypeListStub(stubElement, this, refs); }
Example #19
Source File: CSharpAttributeStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpWithStringValueStub<CSharpAttribute> deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef referenceText = stubInputStream.readName(); return new CSharpWithStringValueStub<CSharpAttribute>(stubElement, this, referenceText); }
Example #20
Source File: CSharpTypeStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpTypeDeclStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef parentQName = stubInputStream.readName(); StringRef vmQName = stubInputStream.readName(); int otherModifierMask = stubInputStream.readVarInt(); return new CSharpTypeDeclStub(stubElement, StringRef.toString(parentQName), StringRef.toString(vmQName), otherModifierMask); }
Example #21
Source File: CSharpUserTypeStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpWithStringValueStub<CSharpUserType> deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { StringRef ref = stubInputStream.readName(); return new CSharpWithStringValueStub<CSharpUserType>(stubElement, this, ref); }
Example #22
Source File: CSharpAttributeListStubElementType.java From consulo-csharp with Apache License 2.0 | 5 votes |
@Nonnull @Override public CSharpAttributeListStub deserialize(@Nonnull StubInputStream stubInputStream, StubElement stubElement) throws IOException { int targetIndex = stubInputStream.readVarInt(); return new CSharpAttributeListStub(stubElement, this, targetIndex == -1 ? null : DotNetAttributeTargetType.values()[targetIndex]); }
Example #23
Source File: AtStateStub.java From bamboo-soy with Apache License 2.0 | 5 votes |
@NotNull @Override public AtStateStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { final StringRef ref = dataStream.readName(); final StringRef ref2 = dataStream.readName(); return new AtStateStub( parentStub, ref.getString(), ref2.getString()); }
Example #24
Source File: TemplateDefinitionStub.java From bamboo-soy with Apache License 2.0 | 5 votes |
@NotNull @Override public TemplateDefinitionStub deserialize( @NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { final StringRef ref = dataStream.readName(); return new TemplateDefinitionStub(parentStub, ref.getString()); }
Example #25
Source File: NamespaceDeclarationStub.java From bamboo-soy with Apache License 2.0 | 5 votes |
@NotNull @Override public NamespaceDeclarationStub deserialize( @NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { final StringRef ref = dataStream.readName(); return new NamespaceDeclarationStub(parentStub, ref.getString()); }
Example #26
Source File: BashSimpleCommandElementType.java From BashSupport with Apache License 2.0 | 5 votes |
@NotNull public BashCommandStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { StringRef bashCommandFilename = dataStream.readName(); boolean internalCommandBash3 = dataStream.readBoolean(); boolean internalCommandBash4 = dataStream.readBoolean(); boolean genericCommand = dataStream.readBoolean(); return new BashCommandStubImpl(parentStub, StringRef.toString(bashCommandFilename), this, internalCommandBash3, internalCommandBash4, genericCommand); }
Example #27
Source File: BashVarDefElementType.java From BashSupport with Apache License 2.0 | 5 votes |
@NotNull public BashVarDefStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { StringRef ref = dataStream.readName(); boolean readOnly = dataStream.readBoolean(); return new BashVarDefStubImpl(parentStub, ref, this, readOnly); }
Example #28
Source File: BashVarElementType.java From BashSupport with Apache License 2.0 | 5 votes |
@NotNull public BashVarStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { StringRef ref = dataStream.readName(); int prefixLength = dataStream.readInt(); return new BashVarStubImpl(parentStub, ref, this, prefixLength); }
Example #29
Source File: AtParamStub.java From bamboo-soy with Apache License 2.0 | 5 votes |
@NotNull @Override public AtParamStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { final StringRef ref = dataStream.readName(); final StringRef ref2 = dataStream.readName(); return new AtParamStub( parentStub, ref.getString(), ref2.getString(), dataStream.readBoolean()); }
Example #30
Source File: DataTypeStub.java From protobuf-jetbrains-plugin with Apache License 2.0 | 5 votes |
@NotNull @Override public S deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { return createStub(parentStub, dataStream.readName().getString(), dataStream.readName().getString()); }