org.codehaus.janino.IClassLoader finds, scans and parses compilation units.
Notice that it does not compile them!
| Modifier and Type | Field and Description |
|---|---|
| private ErrorHandler | |
| private static final Logger | |
| private EnumSet | |
| private Charset | |
| private ResourceFinder | |
| private int | |
| private int | |
| private final Set | unitCompilers
Collection of parsed compilation units. |
| private WarningHandler |
| Access | Constructor and Description |
|---|---|
| public | JavaSourceIClassLoader(ResourceFinder sourceFinder, String sourceCharsetName, IClassLoader parentIClassLoader)
|
| Modifier and Type | Method and Description |
|---|---|
| protected Java. | Returns: null iff the source file could not be foundFinds the Java source file for the named class through the configured 'source resource finder' and parses it. |
| public IClass | findIClass(final String
Field descriptor of the fieldDescriptor)IClass to load, e.g. "Lpkg1/pkg2/Outer$Inner;"Implements abstract org. IClass by descriptor and calls defineIClass(IClass).
|
| public ResourceFinder | |
| public Set | |
| public EnumSet | Returns: A reference to the currently effective compilation options; changes to it take effect immediately
|
| public JavaSourceIClassLoader | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| compileErrorHandler | back to summary |
|---|---|
| private ErrorHandler compileErrorHandler
| |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| options | back to summary |
|---|---|
| private EnumSet<JaninoOption> options | |
| sourceCharset | back to summary |
|---|---|
| private Charset sourceCharset | |
| sourceFinder | back to summary |
|---|---|
| private ResourceFinder sourceFinder | |
| sourceVersion | back to summary |
|---|---|
| private int sourceVersion | |
| targetVersion | back to summary |
|---|---|
| private int targetVersion | |
| unitCompilers | back to summary |
|---|---|
| private final Set<UnitCompiler> unitCompilers Collection of parsed compilation units. | |
| warningHandler | back to summary |
|---|---|
| private WarningHandler warningHandler
| |
| JavaSourceIClassLoader | back to summary |
|---|---|
| public JavaSourceIClassLoader(ResourceFinder sourceFinder, String sourceCharsetName, IClassLoader parentIClassLoader) | |
| findCompilationUnit | back to summary |
|---|---|
| protected Java. Finds the Java source file for the named class through the configured 'source resource finder' and parses it.
| |
| findIClass | back to summary |
|---|---|
| public IClass findIClass(final String fieldDescriptor) throws ClassNotFoundException Implements abstract org. Doc from org. Finds a new
Similar
The format of a
Notice that this method is never called for array types. Notice that this method is never called from more than one thread at a time. In other words, implementations of this method need not be thread-safe. | |
| getSourceFinder | back to summary |
|---|---|
| public ResourceFinder getSourceFinder() | |
| getUnitCompilers | back to summary |
|---|---|
| public Set Returns the set of | |
| options | back to summary |
|---|---|
public EnumSet
| |
| options | back to summary |
|---|---|
| public JavaSourceIClassLoader options(EnumSet<JaninoOption> options) Sets the options for all future compilations. | |
| setCharacterEncoding | back to summary |
|---|---|
| public void setCharacterEncoding(String sourceCharsetName)
Deprecated Use
| |
| setCompileErrorHandler | back to summary |
|---|---|
| public void setCompileErrorHandler(ErrorHandler compileErrorHandler) | |
| setSourceCharset | back to summary |
|---|---|
public void setSourceCharset(Charset sourceCharset)
| |
| setSourceFinder | back to summary |
|---|---|
public void setSourceFinder(ResourceFinder sourceFinder)
| |
| setSourceVersion | back to summary |
|---|---|
| public void setSourceVersion(int version) | |
| setTargetVersion | back to summary |
|---|---|
| public void setTargetVersion(int version) | |
| setWarningHandler | back to summary |
|---|---|
| public void setWarningHandler(WarningHandler warningHandler) | |