Java Code Examples for com.intellij.psi.stubs.StubInputStream#readName()
The following examples show how to use
com.intellij.psi.stubs.StubInputStream#readName() .
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: 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 3
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 4
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 5
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 6
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 7
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 8
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 9
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 10
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 11
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 12
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 13
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 14
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 15
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 16
Source File: BashFunctionDefElementType.java From BashSupport with Apache License 2.0 | 4 votes |
@NotNull public BashFunctionDefStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { StringRef ref = dataStream.readName(); return new BashFunctionDefStubImpl(parentStub, ref, this); }
Example 17
Source File: HaskellConidStubElementType.java From intellij-haskforce with Apache License 2.0 | 4 votes |
@NotNull @Override public HaskellConidStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { return new HaskellConidStub(parentStub, this, dataStream.readName()); }
Example 18
Source File: HaskellVaridStubElementType.java From intellij-haskforce with Apache License 2.0 | 4 votes |
@NotNull @Override public HaskellVaridStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { return new HaskellVaridStub(parentStub, this, dataStream.readName()); }
Example 19
Source File: BashIncludeCommandElementType.java From BashSupport with Apache License 2.0 | 4 votes |
@NotNull public BashIncludeCommandStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { StringRef filename = dataStream.readName(); StringRef includer = dataStream.readName(); return new BashIncludeCommandStubImpl(parentStub, filename, includer, this); }
Example 20
Source File: PsiRecordFieldStubElementType.java From reasonml-idea-plugin with MIT License | 4 votes |
@NotNull public PsiRecordFieldStub deserialize(@NotNull final StubInputStream dataStream, final StubElement parentStub) throws IOException { StringRef name = dataStream.readName(); String path = dataStream.readUTFFast(); return new PsiRecordFieldStub(parentStub, this, name, path); }