Interface ICookable

All Known Subinterfaces:
IClassBodyEvaluator, IExpressionEvaluator, IScriptEvaluator, ISimpleCompiler
All Known Implementing Classes:
ClassBodyEvaluator, ClassBodyEvaluator, Cookable, ExpressionEvaluator, ExpressionEvaluator, MultiCookable, ScriptEvaluator, ScriptEvaluator, SimpleCompiler, SimpleCompiler

public interface ICookable
An entity that processes a sequence of characters (a "document"). For example, if you cook an IClassBodyEvaluator, then the tokens are interpreted as a Java class body and compiled into a Class which is accessible through IClassBodyEvaluator.getClazz().
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".
    void
    cook(InputStream is, String encoding)
    Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.
    void
    Reads, scans, parses and compiles Java tokens from the given Reader.
    void
    Reads, scans, parses and compiles Java tokens from the given String.
    void
    cook(String fileName, InputStream is)
    Reads, scans, parses and compiles Java tokens from the given InputStream, encoded in the "platform default encoding".
    void
    cook(String fileName, InputStream is, String encoding)
    Reads, scans, parses and compiles Java tokens from the given InputStream with the given encoding.
    void
    cook(String fileName, Reader r)
    Reads, scans, parses and compiles Java tokens from the given Reader.
    void
    cook(String fileName, String s)
    Reads, scans, parses and compiles Java tokens from the given String.
    void
    cookFile(File file)
    Reads, scans, parses and compiles Java tokens from the given File, encoded in the "platform default encoding".
    void
    cookFile(File file, String encoding)
    Reads, scans, parses and compiles Java tokens from the given File with the given encoding.
    void
    cookFile(String fileName)
    Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".
    void
    cookFile(String fileName, String encoding)
    Reads, scans, parses and compiles Java tokens from the named file with the given encoding.
    Map<String,byte[]>
     
    void
    setSourceVersion(int version)
    Specifies the version of source code accepted, in analogy with JAVAC's -source command line option.
    void
    setTargetVersion(int version)
    Generates class files that target a specified release of the virtual machine, in analogy with JAVAC's -target command line option.