Package | Description |
---|---|
org.codehaus.commons.compiler |
This package declares interfaces for the implementation of an
IExpressionEvaluator , an IScriptEvaluator , an
IClassBodyEvaluator and an ISimpleCompiler . |
Modifier and Type | Method and Description |
---|---|
void |
ICookable.cook(InputStream is)
Reads, scans, parses and compiles Java tokens from the given
InputStream , encoded
in the "platform default encoding". |
void |
Cookable.cook(InputStream is) |
void |
ICookable.cook(InputStream is,
String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the given
InputStream with the given encoding . |
void |
Cookable.cook(InputStream is,
String optionalEncoding) |
void |
ICookable.cook(Reader r)
Reads, scans, parses and compiles Java tokens from the given
Reader . |
void |
Cookable.cook(Reader r) |
void |
IScriptEvaluator.cook(Reader[] readers)
Same as
ICookable.cook(Reader) , but for multiple scripts. |
void |
ICookable.cook(String s)
Reads, scans, parses and compiles Java tokens from the given
String . |
void |
Cookable.cook(String s) |
void |
IScriptEvaluator.cook(String[] strings)
Same as
ICookable.cook(String) , but for multiple scripts. |
void |
IScriptEvaluator.cook(String[] optionalFileNames,
Reader[] readers)
Same as
ICookable.cook(String, Reader) , but cooks a set of scripts into one class. |
void |
IScriptEvaluator.cook(String[] optionalFileNames,
String[] strings)
Same as
ICookable.cook(String, String) , but for multiple scripts. |
void |
ICookable.cook(String optionalFileName,
InputStream is)
Reads, scans, parses and compiles Java tokens from the given
InputStream , encoded
in the "platform default encoding". |
void |
Cookable.cook(String optionalFileName,
InputStream is) |
void |
ICookable.cook(String optionalFileName,
InputStream is,
String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the given
InputStream with the given encoding . |
void |
Cookable.cook(String optionalFileName,
InputStream is,
String optionalEncoding) |
void |
ICookable.cook(String optionalFileName,
Reader r)
Reads, scans, parses and compiles Java tokens from the given
Reader . |
void |
ICookable.cook(String optionalFileName,
String s)
Reads, scans, parses and compiles Java tokens from the given
String . |
void |
Cookable.cook(String optionalFileName,
String s) |
void |
ICookable.cookFile(File file)
Reads, scans, parses and compiles Java tokens from the given
File , encoded in the "platform default
encoding". |
void |
Cookable.cookFile(File file) |
void |
ICookable.cookFile(File file,
String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the given
File with the given encoding . |
void |
Cookable.cookFile(File file,
String optionalEncoding) |
void |
ICookable.cookFile(String fileName)
Reads, scans, parses and compiles Java tokens from the named file, encoded in the "platform default encoding".
|
void |
Cookable.cookFile(String fileName) |
void |
ICookable.cookFile(String fileName,
String optionalEncoding)
Reads, scans, parses and compiles Java tokens from the named file with the given optionalEncoding.
|
void |
Cookable.cookFile(String fileName,
String optionalEncoding) |
<T> Object |
IScriptEvaluator.createFastEvaluator(Reader reader,
Class<T> interfaceToImplement,
String[] parameterNames)
If the parameter and return types of the expression are known at compile time, then a "fast" script evaluator
can be instantiated through this method.
|
<T> Object |
IExpressionEvaluator.createFastEvaluator(Reader reader,
Class<T> interfaceToImplement,
String[] parameterNames) |
<T> Object |
IScriptEvaluator.createFastEvaluator(String script,
Class<T> interfaceToImplement,
String[] parameterNames) |
<T> Object |
IExpressionEvaluator.createFastEvaluator(String expression,
Class<T> interfaceToImplement,
String[] parameterNames)
If the parameter and return types of the expression are known at compile time, then a "fast" expression evaluator
can be instantiated through
IExpressionEvaluator.createFastEvaluator(String, Class, String[]) . |
Object |
IClassBodyEvaluator.createInstance(Reader reader)
Scans, parses and compiles a class body from the tokens delivered by the the given
Reader , then creates
and returns an instance of that class. |
void |
ErrorHandler.handleError(String message,
Location optionalLocation)
May or may not choose to throw a
CompileException . |
void |
WarningHandler.handleWarning(String handle,
String message,
Location optionalLocation)
May or may not choose to throw a
CompileException . |
Copyright © 2016. All rights reserved.