Klasse BaseCompiler
java.lang.Object
com.github.hypfvieh.java.rtcompiler.BaseCompiler
- Bekannte direkte Unterklassen:
RtCompiler
Compiler implementation.
This version of Compiler has an enhanced
This version of Compiler has an enhanced
compile(AbstractResource[])
method.
These enhancements will allow compiling multiple class and handle missing
sources in case of inheritance.- Seit:
- 1.0.0 - 2024-01-25
- Autor:
- hypfvieh
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
compile
(AbstractResource... _sourceResources) Compile all sources defined by the givenAbstractResource
s.final void
Compile all given source files.File[]
Contains all compiler exceptions fetched during last call tocompile(AbstractResource[])
.Contains all compiler messages fetched during last call tocompile(AbstractResource[])
.Currently configured compiler options.Contains all missing symbols reported by the compiler during last call tocompile(AbstractResource[])
.boolean
boolean
boolean
void
setClassFileCreator
(IResourceWriter _classFileCreator) void
setClassFileLocator
(AbstractResourceLocator _classFileLocator) void
setClassPath
(File[] _classPath) void
setCompilerOptions
(String... _compilerOpts) Add additional command line options to the compiler.void
setDebugLines
(boolean _debugLines) void
setDebugSource
(boolean _debugSource) void
setDebugVars
(boolean _debugVars) void
setSourceLocator
(AbstractResourceLocator _sourceLocator)
-
Konstruktordetails
-
BaseCompiler
public BaseCompiler()
-
-
Methodendetails
-
isDebugLines
public boolean isDebugLines() -
setDebugLines
public void setDebugLines(boolean _debugLines) -
isDebugVars
public boolean isDebugVars() -
setDebugVars
public void setDebugVars(boolean _debugVars) -
isDebugSource
public boolean isDebugSource() -
setDebugSource
public void setDebugSource(boolean _debugSource) -
getClassPath
-
setClassPath
-
getSourceLocator
-
setSourceLocator
-
getClassFileLocator
-
setClassFileLocator
-
setClassFileCreator
-
getCompileErrors
Contains all compiler exceptions fetched during last call tocompile(AbstractResource[])
.- Gibt zurück:
- List, maybe empty - never null
-
getCompilerLogs
Contains all compiler messages fetched during last call tocompile(AbstractResource[])
.- Gibt zurück:
- Set, maybe empty - never null
-
getMissingSymbols
Contains all missing symbols reported by the compiler during last call tocompile(AbstractResource[])
.- Gibt zurück:
- Map, maybe empty - never null
-
setCompilerOptions
Add additional command line options to the compiler.
These options should be any option supported by 'javac' except the '-g' options which are set bysetDebugLines(boolean)
,setDebugVars(boolean)
andsetDebugSource(boolean)
.- Parameter:
_compilerOpts
- command line options supported javac
-
getCompilerOptions
Currently configured compiler options.- Gibt zurück:
- Collection, maybe empty - never null
-
compile
Compile all sources defined by the givenAbstractResource
s.- Parameter:
_sourceResources
- sources to compile- Löst aus:
CompileException
- when compilation failsIOException
- when reading or writing fails
-
compile
Compile all given source files.- Parameter:
_sourceFiles
- files to compile- Löst aus:
CompileException
- when compilation failsIOException
- when input cannot be read or output not writable
-