Class Cookable

java.lang.Object
org.codehaus.commons.compiler.Cookable
All Implemented Interfaces:
ICookable
Direct Known Subclasses:
ClassBodyEvaluator, ClassBodyEvaluator, MultiCookable, SimpleCompiler, SimpleCompiler

public abstract class Cookable extends Object implements ICookable
Base class for a simple ICookable.

Basically, it implements all those cook() convewnience methods, and leaves only cook(String, Reader) unimplemented.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".
    final void
    cook(InputStream is, String encoding)
    Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.
    final void
    Reads, scans, parses and compiles Java tokens from the given Reader.
    final void
    Reads, scans, parses and compiles Java tokens from the given String.
    final void
    cook(String fileName, InputStream is)
    Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".
    final void
    cook(String fileName, InputStream is, String encoding)
    Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.
    abstract void
    cook(String fileName, Reader reader)
    Reads, scans, parses and compiles Java tokens from the given Reader.
    final void
    cook(String fileName, String s)
    Reads, scans, parses and compiles Java tokens from the given String.
    final void
    cookFile(File file)
    Reads, scans, parses and compiles Java tokens from the given File, encoded in the "platform default encoding".
    final void
    cookFile(File file, String encoding)
    Reads, scans, parses and compiles Java tokens from the given File with the given encoding.
    final void
    cookFile(String fileName)
    Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".
    final void
    cookFile(String fileName, String encoding)
    Reads, scans, parses and compiles Java tokens from the named file with the given encoding.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.codehaus.commons.compiler.ICookable

    getBytecodes, setSourceVersion, setTargetVersion