Java Code Examples for com.intellij.util.io.StringRef#getString()

The following examples show how to use com.intellij.util.io.StringRef#getString() . 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: AtStateStub.java    From bamboo-soy with Apache License 2.0 5 votes vote down vote up
@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 2
Source File: TemplateDefinitionStub.java    From bamboo-soy with Apache License 2.0 5 votes vote down vote up
@NotNull
@Override
public TemplateDefinitionStub deserialize(
    @NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
  final StringRef ref = dataStream.readName();
  return new TemplateDefinitionStub(parentStub, ref.getString());
}
 
Example 3
Source File: NamespaceDeclarationStub.java    From bamboo-soy with Apache License 2.0 5 votes vote down vote up
@NotNull
@Override
public NamespaceDeclarationStub deserialize(
    @NotNull StubInputStream dataStream, StubElement parentStub) throws IOException {
  final StringRef ref = dataStream.readName();
  return new NamespaceDeclarationStub(parentStub, ref.getString());
}
 
Example 4
Source File: AtParamStub.java    From bamboo-soy with Apache License 2.0 5 votes vote down vote up
@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 5
Source File: FusionStubElementType.java    From intellij-neos with GNU General Public License v3.0 5 votes vote down vote up
public String getNameAsString(StringRef name) {
    if (name != null) {
        return name.getString();
    }

    return null;
}