Class MultiCookable
java.lang.Object
org.codehaus.commons.compiler.Cookable
org.codehaus.commons.compiler.MultiCookable
- All Implemented Interfaces:
ICookable, IMultiCookable
- Direct Known Subclasses:
ExpressionEvaluator, ExpressionEvaluator, ScriptEvaluator, ScriptEvaluator
Implements all methods of
IMultiCookable, except for IMultiCookable.cook(String[], Reader[]).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidcook(InputStream... inputStreams) Same asCookable.cook(InputStream), but cooks a set of documents into one class.final voidcook(InputStream[] inputStreams, String[] encodings) Same asCookable.cook(InputStream, String), but cooks a set of documents into one class.final voidSame asCookable.cook(Reader), but cooks a set of documents into one class.final voidSame asCookable.cook(String), but cooks a set of documents into one class.final voidcook(String[] fileNames, InputStream[] inputStreams) Same asCookable.cook(String, InputStream), but cooks a set of documents into one class.final voidcook(String[] fileNames, InputStream[] inputStreams, String[] encodings) Same asCookable.cook(String, InputStream, String), but cooks a set of documents into one class.abstract voidSame asCookable.cook(String, Reader), but cooks a set of documents into one class.final voidSame asCookable.cook(String, String), but cooks a set of documents into one class.final voidSame asCookable.cookFile(File), but cooks a set of documents into one class.final voidSame asCookable.cookFile(File, String), but cooks a set of documents into one class.final voidSame asCookable.cookFile(String), but cooks a set of documents into one class.final voidSame asCookable.cookFile(String, String), but cooks a set of documents into one class.Methods inherited from class Cookable
cook, cook, cook, cook, cook, cook, cook, cook, cookFile, cookFile, cookFile, cookFileMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ICookable
getBytecodes, setSourceVersion, setTargetVersion
-
Constructor Details
-
MultiCookable
public MultiCookable()
-
-
Method Details
-
cook
Description copied from interface:IMultiCookableSame asCookable.cook(InputStream), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cook
Description copied from interface:IMultiCookableSame asCookable.cook(String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileException
-
cook
public final void cook(String[] fileNames, InputStream[] inputStreams) throws CompileException, IOException Description copied from interface:IMultiCookableSame asCookable.cook(String, InputStream), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cook
public final void cook(InputStream[] inputStreams, String[] encodings) throws CompileException, IOException Description copied from interface:IMultiCookableSame asCookable.cook(InputStream, String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cook
public final void cook(String[] fileNames, InputStream[] inputStreams, String[] encodings) throws CompileException, IOException Description copied from interface:IMultiCookableSame asCookable.cook(String, InputStream, String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cook
Description copied from interface:IMultiCookableSame asCookable.cook(String, String), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileException
-
cook
public abstract void cook(String[] fileNames, Reader[] readers) throws CompileException, IOException Description copied from interface:IMultiCookableSame asCookable.cook(String, Reader), but cooks a set of documents into one class. Notice that if any of the documents causes trouble, the entire compilation will fail. If you need to report which of the documents causes the exception, you may want to use thefileNamesparameter to distinguish between the individual token sources.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cookFiles
Description copied from interface:IMultiCookableSame asCookable.cookFile(File), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cookFiles
Description copied from interface:IMultiCookableSame asCookable.cookFile(File, String), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cookFiles
Description copied from interface:IMultiCookableSame asCookable.cookFile(String), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cookFiles
public final void cookFiles(String[] fileNames, String[] encodings) throws CompileException, IOException Description copied from interface:IMultiCookableSame asCookable.cookFile(String, String), but cooks a set of documents into one class.- Specified by:
cookFilesin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-
cook
Description copied from interface:IMultiCookableSame asCookable.cook(Reader), but cooks a set of documents into one class.- Specified by:
cookin interfaceIMultiCookable- Throws:
CompileExceptionIOException
-