congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractCodeWriter.writeIndent
Code IndexAdd Tabnine to your IDE (free)

How to use
writeIndent
method
in
com.oracle.truffle.dsl.processor.java.transform.AbstractCodeWriter

Best Java code snippets using com.oracle.truffle.dsl.processor.java.transform.AbstractCodeWriter.writeIndent (Showing top 4 results out of 315)

origin: com.oracle/truffle-dsl-processor

private AbstractCodeWriter write(String m) {
  if (m.isEmpty()) {
    return this;
  }
  try {
    String s = m;
    lineLength += s.length();
    if (newLine && s != LN) {
      writeIndent();
      newLine = false;
    }
    if (lineLength > MAX_LINE_LENGTH) {
      s = wrapLine(s);
    }
    writer.write(s);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  return this;
}
origin: com.oracle.truffle/truffle-dsl-processor

private AbstractCodeWriter write(String m) {
  if (m.isEmpty()) {
    return this;
  }
  try {
    String s = m;
    lineLength += s.length();
    if (newLine && s != LN) {
      writeIndent();
      newLine = false;
    }
    if (lineLength > MAX_LINE_LENGTH) {
      s = wrapLine(s);
    }
    writer.write(s);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
  return this;
}
origin: com.oracle/truffle-dsl-processor

lineLength = 0;
write(LN);
writeIndent();
return m;
origin: com.oracle.truffle/truffle-dsl-processor

lineLength = 0;
write(LN);
writeIndent();
return m;
com.oracle.truffle.dsl.processor.java.transformAbstractCodeWriterwriteIndent

Popular methods of AbstractCodeWriter

  • createWriter
  • dedent
  • findExecutableElement
  • getInstanceFields
  • getInstanceMethods
  • getStaticFields
  • getStaticMethods
  • indent
  • indentSize
  • useImport
  • visitAnnotation
  • visitAnnotationValue
  • visitAnnotation,
  • visitAnnotationValue,
  • visitTree,
  • wrapLine,
  • write,
  • writeClassImpl,
  • writeEmptyLn,
  • writeHeader,
  • writeLn

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • Menu (java.awt)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
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