congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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