Java Code Examples for com.intellij.util.io.StringRef#toString()
The following examples show how to use
com.intellij.util.io.StringRef#toString() .
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: 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 2
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 3
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 4
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 5
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 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: 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 8
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 9
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 10
Source File: NamedStubBase.java From consulo with Apache License 2.0 | 4 votes |
protected NamedStubBase(StubElement parent, IStubElementType elementType, @Nullable StringRef name) { this(parent, elementType, StringRef.toString(name)); }
Example 11
Source File: CSharpNamespaceDeclStub.java From consulo-csharp with Apache License 2.0 | 4 votes |
public CSharpNamespaceDeclStub(StubElement parent, IStubElementType elementType, @Nullable StringRef referenceTextRef) { super(parent, elementType); myReferenceTextRef = StringRef.toString(referenceTextRef); }
Example 12
Source File: CSharpIdentifierStub.java From consulo-csharp with Apache License 2.0 | 4 votes |
public CSharpIdentifierStub(StubElement parent, IStubElementType elementType, @Nullable StringRef value) { this(parent, elementType, StringRef.toString(value)); }
Example 13
Source File: CSharpWithStringValueStub.java From consulo-csharp with Apache License 2.0 | 4 votes |
public CSharpWithStringValueStub(StubElement parent, IStubElementType elementType, StringRef referenceText) { super(parent, elementType); myReferenceText = StringRef.toString(referenceText); }
Example 14
Source File: BashFunctionDefStubImpl.java From BashSupport with Apache License 2.0 | 4 votes |
public String getName() { return StringRef.toString(myName); }
Example 15
Source File: BashIncludeCommandStubImpl.java From BashSupport with Apache License 2.0 | 4 votes |
public String getIncluderFilePath() { return StringRef.toString(includerFilename); }
Example 16
Source File: BashIncludeCommandStubImpl.java From BashSupport with Apache License 2.0 | 4 votes |
@Override public String getIncludedFilename() { return StringRef.toString(includedFilename); }
Example 17
Source File: BashVarStubImpl.java From BashSupport with Apache License 2.0 | 4 votes |
public String getName() { return StringRef.toString(name); }
Example 18
Source File: BashVarDefStubImpl.java From BashSupport with Apache License 2.0 | 4 votes |
public String getName() { return StringRef.toString(name); }