Tabnine Logo
CodeWriter.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

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

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<init>

Popular methods of CodeWriter

  • writeLn

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JCheckBox (javax.swing)
  • JOptionPane (javax.swing)
  • Best plugins for Eclipse
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