All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gw.lang.gosuc.simple.ICompilerDriver Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
package gw.lang.gosuc.simple;

import java.io.File;
import java.util.List;
import javax.tools.Diagnostic;

/**
 * @author dpetrusca
 */
public interface ICompilerDriver {
  public static final int ERROR = 0;
  public static final int WARNING = 1;

  void sendCompileIssue(File file, int category, long offset, long line, long column, String message);

  default void sendCompileIssue(Object file, int category, long offset, long line, long column, String message)
  {
    sendCompileIssue( (File)file, category, offset, line, column, message );
  }

  default void sendCompileIssue( Diagnostic d )
  {
  }

  void registerOutput(File sourceFile, File outputFile);
  
  default void registerOutput(Object sourceFile, File outputFile) 
  {
    registerOutput( (File) sourceFile, outputFile);
  }

  default boolean isIncludeWarnings()
  {
    throw new UnsupportedOperationException();
  }

  default boolean hasErrors() 
  {
    throw new UnsupportedOperationException();
  }

  default List getErrors() 
  {
    throw new UnsupportedOperationException();
  }

  default List getWarnings() 
  {
    throw new UnsupportedOperationException();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy