@Override
 public void serialize(
     @NotNull MsilXXXAccessorStub stub, @NotNull StubOutputStream stubOutputStream)
     throws IOException {
   stubOutputStream.writeInt(stub.getIndex());
   stubOutputStream.writeName(stub.getMethodName());
 }
コード例 #2
0
 @Override
 public void serialize(@NotNull final GrFileStub stub, @NotNull final StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName().toString());
   dataStream.writeBoolean(stub.isScript());
   GrStubUtils.writeStringArray(dataStream, stub.getAnnotations());
 }
コード例 #3
0
ファイル: GrStubFileElementType.java プロジェクト: jexp/idea2
 @Override
 public void serialize(final GrFileStub stub, final StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getPackageName().toString());
   dataStream.writeName(stub.getName().toString());
   dataStream.writeBoolean(stub.isScript());
 }
コード例 #4
0
 public void serialize(
     @NotNull final PyFunctionStub stub, @NotNull final StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName());
   dataStream.writeUTFFast(stub.getDocString() != null ? stub.getDocString() : "");
   dataStream.writeName(stub.getDeprecationMessage());
 }
コード例 #5
0
 public static void writeNullableString(StubOutputStream dataStream, @Nullable String typeText)
     throws IOException {
   dataStream.writeBoolean(typeText != null);
   if (typeText != null) {
     dataStream.writeUTFFast(typeText);
   }
 }
コード例 #6
0
 public static void writeStringArray(StubOutputStream dataStream, String[] array)
     throws IOException {
   if (array.length > Byte.MAX_VALUE) {
     dataStream.writeByte(TOO_LONG);
     dataStream.writeInt(array.length);
   } else {
     dataStream.writeByte(array.length);
   }
   for (String s : array) {
     LOG.assertTrue(s != null);
     dataStream.writeName(s);
   }
 }
 @Override
 public void serialize(
     @NotNull MsilVariableEntryStub msilPropertyEntryStub,
     @NotNull StubOutputStream stubOutputStream)
     throws IOException {
   stubOutputStream.writeName(msilPropertyEntryStub.getNameFromBytecode());
 }
コード例 #8
0
 @Override
 public void serialize(@NotNull PsiJetParameterStub stub, @NotNull StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName());
   dataStream.writeBoolean(stub.isMutable());
   dataStream.writeBoolean(stub.isVarArg());
   dataStream.writeName(stub.getTypeText());
   dataStream.writeName(stub.getDefaultValueText());
   FqName name = stub.getFqName();
   dataStream.writeName(name != null ? name.asString() : null);
 }
コード例 #9
0
 @Override
 public void serialize(
     @NotNull PerlMooseAugmentStatementStub stub, @NotNull StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getSubName());
 }
コード例 #10
0
 @Override
 public void serialize(final PsiJavaFileStub stub, final StubOutputStream dataStream)
     throws IOException {
   dataStream.writeBoolean(stub.isCompiled());
   dataStream.writeName(stub.getPackageName());
 }
コード例 #11
0
 @Override
 public void serialize(@NotNull GoTypeSpecStub stub, @NotNull StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName());
   dataStream.writeBoolean(stub.isPublic());
 }
コード例 #12
0
 @Override
 public void serialize(
     @NotNull DLanguageFuncDeclarationStub stub, @NotNull StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName());
 }
コード例 #13
0
 public void serialize(@NotNull HeaderStub stub, @NotNull StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName());
 }
コード例 #14
0
ファイル: Alias.java プロジェクト: f-lombardo/intellij-elixir
 @Override
 public void serialize(
     final @NotNull org.elixir_lang.psi.stub.Alias stub, @NotNull StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName());
 }