| Package | Description |
|---|---|
| org.codehaus.commons.compiler |
This package declares interfaces for the implementation of an
IExpressionEvaluator, an IScriptEvaluator, an
IClassBodyEvaluator and an ISimpleCompiler. |
| org.codehaus.commons.compiler.jdk |
Main package of the plugin.
|
| org.codehaus.janino |
The classes in this package pose the core of the Janino JavaTM compiler.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
ICookable.setWarningHandler(WarningHandler optionalWarningHandler) |
By default, warnings are discarded, but an application my install a custom
WarningHandler. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
SimpleCompiler.setWarningHandler(WarningHandler optionalWarningHandler) |
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Compiler.SimpleWarningHandler |
Prints warnings to STDERR.
|
class |
FilterWarningHandler |
Invokes a delegate iff the handle of the warning matches one or more of a set of
StringPatterns. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Compiler.setWarningHandler(WarningHandler optionalWarningHandler) |
By default, warnings are discarded, but an application my install a custom
WarningHandler. |
void |
JavaSourceClassLoader.setWarningHandler(WarningHandler optionalWarningHandler) |
|
void |
JavaSourceIClassLoader.setWarningHandler(WarningHandler optionalWarningHandler) |
|
void |
Parser.setWarningHandler(WarningHandler optionalWarningHandler) |
By default, warnings are discarded, but an application my install a
WarningHandler. |
void |
Scanner.setWarningHandler(WarningHandler optionalWarningHandler) |
By default, warnings are discarded, but an application my install a
WarningHandler. |
void |
SimpleCompiler.setWarningHandler(WarningHandler optionalWarningHandler) |
|
void |
UnitCompiler.setWarningHandler(WarningHandler optionalWarningHandler) |
By default, warnings are discarded, but an application my install a custom
WarningHandler. |
| Constructor | Description |
|---|---|
Compiler(ResourceFinder sourceFinder,
IClassLoader iClassLoader,
ResourceFinder classFileFinder,
ResourceCreator classFileCreator,
String optionalCharacterEncoding,
boolean verbose,
boolean debugSource,
boolean debugLines,
boolean debugVars,
WarningHandler optionalWarningHandler) |
To mimic the behavior of JAVAC with a missing "-d" command line option,
pass
Compiler.FIND_NEXT_TO_SOURCE_FILE as the classFileResourceFinder and
Compiler.CREATE_NEXT_TO_SOURCE_FILE as the classFileResourceCreator. |
FilterWarningHandler(StringPattern[] handlePatterns,
WarningHandler delegate) |
Popular values for the
handlePatterns parameter are
StringPattern.PATTERNS_ALL and StringPattern.PATTERNS_NONE. |
Copyright © 2001–2019. All rights reserved.