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

How to use
AbstractCodeWriter$TrimTrailingSpaceWriter
in
com.oracle.truffle.dsl.processor.java.transform

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

origin: com.oracle.truffle/truffle-dsl-processor

@Override
public void write(char[] cbuf, int off, int len) throws IOException {
  buffer.append(cbuf, off, len);
  int newLinePoint = buffer.indexOf(LN);
  if (newLinePoint != -1) {
    String lhs = trimTrailing(buffer.substring(0, newLinePoint));
    delegate.write(lhs);
    delegate.write(LN);
    buffer.delete(0, newLinePoint + 1);
  }
}
origin: com.oracle.truffle/truffle-dsl-processor

try {
  imports = OrganizedImports.organize(e);
  w = new TrimTrailingSpaceWriter(createWriter(e));
  writer = w;
  writeRootClass(e);
origin: com.oracle/truffle-dsl-processor

@Override
public Void visitType(CodeTypeElement e, Void p) {
  if (e.isTopLevelClass()) {
    Writer w = null;
    try {
      imports = OrganizedImports.organize(e);
      w = new TrimTrailingSpaceWriter(createWriter(e));
      writer = w;
      writeRootClass(e);
    } catch (IOException ex) {
      throw new RuntimeException(ex);
    } finally {
      if (w != null) {
        try {
          w.close();
        } catch (Throwable e1) {
          // see eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=361378
          // TODO temporary suppress errors on close.
        }
      }
      writer = null;
    }
  } else {
    writeClassImpl(e);
  }
  return null;
}
origin: com.oracle/truffle-dsl-processor

@Override
public void write(char[] cbuf, int off, int len) throws IOException {
  buffer.append(cbuf, off, len);
  int newLinePoint = buffer.indexOf(LN);
  if (newLinePoint != -1) {
    String lhs = trimTrailing(buffer.substring(0, newLinePoint));
    delegate.write(lhs);
    delegate.write(LN);
    buffer.delete(0, newLinePoint + 1);
  }
}
com.oracle.truffle.dsl.processor.java.transformAbstractCodeWriter$TrimTrailingSpaceWriter

Most used methods

  • <init>
  • trimTrailing

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 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