All Implemented Interfaces:
Compiler

public class Jikes extends AbstractCompiler
This class wraps IBM's Jikes Java compiler NOTE: inspired by the Apache Jasper implementation.
Since:
2.0
Author:
Davanum Srinivas, Stefano Mazzocchi
  • Field Details

    • log

      protected static org.apache.commons.logging.Log log
  • Constructor Details

    • Jikes

      public Jikes()
  • Method Details

    • toStringArray

      protected String[] toStringArray(List arguments)
      Copy arguments to a string array
      Overrides:
      toStringArray in class AbstractCompiler
      Parameters:
      arguments - The compiler arguments
      Returns:
      A string array containing compilation arguments
    • compile

      public boolean compile() throws IOException
      Execute the compiler
      Throws:
      IOException
    • parseStream

      protected List parseStream(BufferedReader input) throws IOException
      Parse the compiler error stream to produce a list of CompilerErrors
      Specified by:
      parseStream in class AbstractCompiler
      Parameters:
      input - The error stream
      Returns:
      The list of compiler error messages
      Throws:
      IOException - If an error occurs during message collection
    • toString

      public String toString()
      Overrides:
      toString in class Object