public class SimpleCompiler extends Cookable implements ISimpleCompiler
ISimpleCompiler.BOOT_CLASS_LOADER| Constructor and Description |
|---|
SimpleCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOffset(String optionalFileName)
Derived classes call this method to "reset" the current line and column number at the currently read input
character, and also changes the "file name" (see
cook(String, Reader)). |
void |
cook(String optionalFileName,
Reader r) |
ClassLoader |
getClassLoader() |
void |
setCompileErrorHandler(ErrorHandler optionalCompileErrorHandler) |
void |
setDebuggingInformation(boolean debugSource,
boolean debugLines,
boolean debugVars) |
void |
setNoPermissions() |
void |
setParentClassLoader(ClassLoader optionalParentClassLoader) |
void |
setParentClassLoader(ClassLoader optionalParentClassLoader,
Class<?>[] auxiliaryClasses)
Deprecated.
Auxiliary classes never really worked... don't use them.
|
void |
setPermissions(Permissions permissions) |
void |
setWarningHandler(WarningHandler optionalWarningHandler) |
cook, cook, cook, cook, cook, cook, cook, cookFile, cookFile, cookFile, cookFile, readStringpublic ClassLoader getClassLoader()
getClassLoader in interface ISimpleCompilerIllegalStateException - This Cookable is not yet cookedpublic void setPermissions(Permissions permissions)
setPermissions in interface ISimpleCompilerpublic void setNoPermissions()
setNoPermissions in interface ISimpleCompilerpublic void cook(@Nullable String optionalFileName, Reader r) throws CompileException, IOException
cook in interface ICookableCompileExceptionIOExceptionpublic void setDebuggingInformation(boolean debugSource,
boolean debugLines,
boolean debugVars)
setDebuggingInformation in interface ICookablepublic void setParentClassLoader(@Nullable ClassLoader optionalParentClassLoader)
setParentClassLoader in interface ICookable@Deprecated public void setParentClassLoader(@Nullable ClassLoader optionalParentClassLoader, Class<?>[] auxiliaryClasses)
public void setCompileErrorHandler(@Nullable ErrorHandler optionalCompileErrorHandler)
setCompileErrorHandler in interface ICookablepublic void setWarningHandler(@Nullable WarningHandler optionalWarningHandler)
setWarningHandler in interface ICookableprotected void addOffset(@Nullable String optionalFileName)
cook(String, Reader)).Copyright © 2019. All rights reserved.