Codota Logo
CodeWriter
Code IndexAdd Codota to your IDE (free)

How to use
CodeWriter
in
com.oracle.truffle.dsl.processor

Best Java code snippets using com.oracle.truffle.dsl.processor.CodeWriter (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: com.oracle.truffle/truffle-dsl-processor

@Override
protected void writeHeader() {
  if (env == null) {
    return;
  }
  writeLn("// CheckStyle: start generated");
}
origin: com.oracle.truffle/truffle-dsl-processor

private void generateOptionDescriptor(OptionsInfo info) {
  Element element = info.type;
  ProcessorContext context = ProcessorContext.getInstance();
  CodeTypeElement unit = generateDescriptors(context, element, info);
  DeclaredType overrideType = (DeclaredType) context.getType(Override.class);
  DeclaredType unusedType = (DeclaredType) context.getType(SuppressWarnings.class);
  unit.accept(new GenerateOverrideVisitor(overrideType), null);
  unit.accept(new FixWarningsVisitor(context.getEnvironment(), unusedType, overrideType), null);
  try {
    unit.accept(new CodeWriter(context.getEnvironment(), element), null);
  } catch (RuntimeException e) {
    if (e.getCause() instanceof FilerException) {
      // ignore spurious errors of source file already created in Eclipse.
      if (e.getCause().getMessage().startsWith("Source file already created")) {
        return;
      }
    }
  }
}
origin: com.oracle.truffle/truffle-dsl-processor

  unit.accept(new GenerateOverrideVisitor(overrideType), null);
  unit.accept(new FixWarningsVisitor(context.getEnvironment(), unusedType, overrideType), null);
  unit.accept(new CodeWriter(context.getEnvironment(), element), null);
} catch (Throwable e) {
origin: com.oracle.truffle/truffle-dsl-processor

  unit.accept(new GenerateOverrideVisitor(overrideType), null);
  unit.accept(new FixWarningsVisitor(context.getEnvironment(), unusedType, overrideType), null);
  unit.accept(new CodeWriter(context.getEnvironment(), element), null);
} catch (Throwable e) {
origin: com.oracle/truffle-dsl-processor

@Override
protected void writeHeader() {
  if (env == null) {
    return;
  }
  String comment = CompilerFactory.getCompiler(originalElement).getHeaderComment(env, originalElement);
  if (comment != null) {
    writeLn(comment);
  }
  writeLn("// CheckStyle: start generated");
}
origin: com.oracle/truffle-dsl-processor

unit.accept(new CodeWriter(context.getEnvironment(), element), null);
origin: com.oracle.truffle/truffle-dsl-processor

unit.accept(new CodeWriter(context.getEnvironment(), element), null);
com.oracle.truffle.dsl.processorCodeWriter

Most used methods

  • <init>
  • writeLn

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now