Java 8 JavaFileObject.Kind - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 JavaFileObject.Kind class.

This code example shows how to use the following methods:equals, ordinal
public class ValidationTool { 
  /** 
   * A JavaFileManager that writes the class outputs into a jar file or a 
   * directory. 
   */ 
  static class JarOrDirectoryOutputFileManager extends ForwardingJavaFileManager<JavaFileManager> {
    private final List<MemoryJavaFileObject> toOutput = new ArrayList<MemoryJavaFileObject>();
    private final File output;
 
    JarOrDirectoryOutputFileManager(File output, JavaFileManager fileManager) {
      super(fileManager);
      this.output = output;
    } 
 
    @Override 
    public void close() throws IOException {
      if (output.isDirectory()) {
        writeToDirectory(); 
      } else { 
        writeToJar(); 

5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:equals, ordinal
public class ValidationTool { 
  /** 
   * A JavaFileManager that writes the class outputs into a jar file or a 
   * directory. 
   */ 
  static class JarOrDirectoryOutputFileManager extends ForwardingJavaFileManager<JavaFileManager> {
    private final List<MemoryJavaFileObject> toOutput = new ArrayList<MemoryJavaFileObject>();
    private final File output;
 
    JarOrDirectoryOutputFileManager(File output, JavaFileManager fileManager) {
      super(fileManager);
      this.output = output;
    } 
 
    @Override 
    public void close() throws IOException {
      if (output.isDirectory()) {
        writeToDirectory(); 
      } else { 
        writeToJar(); 

5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Java 8 JavaFileObject.Kind Methods: