janino.net

org.codehaus.commons.compiler
Class Cookable

  extended by org.codehaus.commons.compiler.Cookable
All Implemented Interfaces:
ICookable
Direct Known Subclasses:
SimpleCompiler, SimpleCompiler

public abstract class Cookable
extends
implements ICookable

Base class for a simple ICookable.


Field Summary
 
Fields inherited from interface org.codehaus.commons.compiler.ICookable
BOOT_CLASS_LOADER, SYSTEM_PROPERTY_SOURCE_DEBUGGING_DIR, SYSTEM_PROPERTY_SOURCE_DEBUGGING_ENABLE
 
Constructor Summary
Cookable()
           
 
Method Summary
 void cook( is)
          Reads, scans, parses and compiles Java tokens from the given , encoded in the "platform default encoding".
 void cook( is,  optionalEncoding)
          Reads, scans, parses and compiles Java tokens from the given with the given encoding.
 void cook( r)
          Reads, scans, parses and compiles Java tokens from the given .
 void cook( s)
          Reads, scans, parses and compiles Java tokens from the given .
 void cook( optionalFileName,  is)
          Reads, scans, parses and compiles Java tokens from the given , encoded in the "platform default encoding".
 void cook( optionalFileName,  is,  optionalEncoding)
          Reads, scans, parses and compiles Java tokens from the given with the given encoding.
abstract  void cook( optionalFileName,  r)
          Reads, scans, parses and compiles Java tokens from the given .
 void cook( optionalFileName,  s)
          Reads, scans, parses and compiles Java tokens from the given .
 void cookFile( file)
          Reads, scans, parses and compiles Java tokens from the given , encoded in the "platform default encoding".
 void cookFile( file,  optionalEncoding)
          Reads, scans, parses and compiles Java tokens from the given with the given encoding.
 void cookFile( fileName)
          Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".
 void cookFile( fileName,  optionalEncoding)
          Reads, scans, parses and compiles Java tokens from the named file with the given optionalEncoding.
static  readString( r)
          Reads all characters from the given into a .
 
Methods inherited from class java.lang.
, , , , , , , , , ,
 
Methods inherited from interface org.codehaus.commons.compiler.ICookable
setCompileErrorHandler, setDebuggingInformation, setParentClassLoader, setWarningHandler
 

Constructor Detail

Cookable

public Cookable()
Method Detail

cook

public abstract void cook( optionalFileName,
                           r)
                   throws CompileException,
                          
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given .

Specified by:
cook in interface ICookable
Parameters:
optionalFileName - Used when reporting errors and warnings.
Throws:
CompileException
See Also:
ICookable.cook(String, Reader)

cook

public final void cook( r)
                throws CompileException,
                       
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given .

Specified by:
cook in interface ICookable
Throws:
CompileException
See Also:
ICookable.cook(Reader)

cook

public final void cook( is)
                throws CompileException,
                       
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given , encoded in the "platform default encoding".

Specified by:
cook in interface ICookable
Throws:
CompileException
See Also:
ICookable.cook(InputStream)

cook

public final void cook( optionalFileName,
                        is)
                throws CompileException,
                       
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given , encoded in the "platform default encoding".

Specified by:
cook in interface ICookable
Parameters:
optionalFileName - Used when reporting errors and warnings.
Throws:
CompileException
See Also:
ICookable.cook(String, InputStream)

cook

public final void cook( is,
                        optionalEncoding)
                throws CompileException,
                       
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given with the given encoding.

Specified by:
cook in interface ICookable
Throws:
CompileException
See Also:
ICookable.cook(InputStream, String)

cook

public final void cook( optionalFileName,
                        is,
                        optionalEncoding)
                throws CompileException,
                       
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given with the given encoding.

Specified by:
cook in interface ICookable
Parameters:
optionalFileName - Used when reporting errors and warnings.
Throws:
CompileException
See Also:
ICookable.cook(String, InputStream, String)

cook

public void cook( s)
          throws CompileException
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given .

Specified by:
cook in interface ICookable
Throws:
CompileException
See Also:
ICookable.cook(String)

cook

public void cook( optionalFileName,
                  s)
          throws CompileException
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given .

Specified by:
cook in interface ICookable
Parameters:
optionalFileName - Used when reporting errors and warnings.
Throws:
CompileException
See Also:
ICookable.cook(String, String)

cookFile

public final void cookFile( file)
                    throws CompileException,
                           
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given , encoded in the "platform default encoding".

Specified by:
cookFile in interface ICookable
Throws:
CompileException
See Also:
ICookable.cookFile(File)

cookFile

public final void cookFile( file,
                            optionalEncoding)
                    throws CompileException,
                           
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the given with the given encoding.

Specified by:
cookFile in interface ICookable
Throws:
CompileException
See Also:
ICookable.cookFile(File, String)

cookFile

public final void cookFile( fileName)
                    throws CompileException,
                           
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".

Specified by:
cookFile in interface ICookable
Throws:
CompileException
See Also:
ICookable.cookFile(String)

cookFile

public final void cookFile( fileName,
                            optionalEncoding)
                    throws CompileException,
                           
Description copied from interface: ICookable
Reads, scans, parses and compiles Java tokens from the named file with the given optionalEncoding.

Specified by:
cookFile in interface ICookable
Throws:
CompileException
See Also:
ICookable.cookFile(String, String)

readString

public static  readString( r)
                         throws 
Reads all characters from the given into a .

Throws:

janino.net