Tabnine Logo
JavaFileWriter.writeString
Code IndexAdd Tabnine to your IDE (free)

How to use
writeString
method
in
com.yahoo.aptutils.writer.JavaFileWriter

Best Java code snippets using com.yahoo.aptutils.writer.JavaFileWriter.writeString (Showing top 2 results out of 315)

origin: yahoo/squidb

  @Override
  public boolean writeExpression(JavaFileWriter writer) throws IOException {
    writer.appendString("@")
        .appendString(writer.shortenName(MODEL_GEN_ERRORS, false))
        .appendString("({\n");
    writer.moveToScope(JavaFileWriter.Scope.METHOD_DEFINITION);
    boolean needsNewline = false;
    for (ErrorInfo errorInfo : errors) {
      if (needsNewline) {
        writer.appendString(",").writeNewline();
      }
      needsNewline = true;
      writer.writeExpression(new ModelGenErrorSingle(errorInfo));
    }
    writer.writeNewline();
    writer.finishScope(JavaFileWriter.Scope.METHOD_DEFINITION);
    writer.writeString("})");
    return true;
  }
}
origin: com.yahoo.squidb/squidb-processor

  @Override
  public boolean writeExpression(JavaFileWriter writer) throws IOException {
    writer.appendString("@")
        .appendString(writer.shortenName(MODEL_GEN_ERRORS, false))
        .appendString("({\n");
    writer.moveToScope(JavaFileWriter.Scope.METHOD_DEFINITION);
    boolean needsNewline = false;
    for (ErrorInfo errorInfo : errors) {
      if (needsNewline) {
        writer.appendString(",").writeNewline();
      }
      needsNewline = true;
      writer.writeExpression(new ModelGenErrorSingle(errorInfo));
    }
    writer.writeNewline();
    writer.finishScope(JavaFileWriter.Scope.METHOD_DEFINITION);
    writer.writeString("})");
    return true;
  }
}
com.yahoo.aptutils.writerJavaFileWriterwriteString

Popular methods of JavaFileWriter

  • writeStatement
  • writeStringStatement
  • appendExpression
  • appendString
  • beginConstructorDeclaration
  • beginInitializerBlock
  • beginMethodDefinition
  • beginTypeDefinition
  • close
  • finishInitializerBlock
  • finishMethodDefinition
  • finishScope
  • finishMethodDefinition,
  • finishScope,
  • finishTypeDefinition,
  • moveToScope,
  • registerOtherKnownNames,
  • shortenName,
  • writeAnnotation,
  • writeComment,
  • writeExpression,
  • writeFieldDeclaration

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Permission (java.security)
    Legacy security code; do not use.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now