Class ClasspathlessCompiler.Arguments
- java.lang.Object
-
- io.github.mkoncek.classpathless.api.ClasspathlessCompiler.Arguments
-
- Enclosing interface:
- ClasspathlessCompiler
public static class ClasspathlessCompiler.Arguments extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
compilerFlags
private boolean
useHostJavaLangObject
private boolean
useHostSystemClasses
-
Constructor Summary
Constructors Constructor Description Arguments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
compilerOptions()
ClasspathlessCompiler.Arguments
compilerOptions(java.util.Collection<java.lang.String> value)
Set flags which will be passed to the compiler.boolean
useHostJavaLangObject()
ClasspathlessCompiler.Arguments
useHostJavaLangObject(boolean value)
Set flag whether or not to use host java.lang.Object class regardless of "useHostSystemClasses".boolean
useHostSystemClasses()
ClasspathlessCompiler.Arguments
useHostSystemClasses(boolean value)
Set flag whether or not to use host system classes.
-
-
-
Method Detail
-
compilerOptions
public java.util.List<java.lang.String> compilerOptions()
- Returns:
- A copy of the compiler argument strings.
-
useHostSystemClasses
public boolean useHostSystemClasses()
- Returns:
- The value of the option.
-
useHostJavaLangObject
public boolean useHostJavaLangObject()
- Returns:
- The value of the option.
-
compilerOptions
public ClasspathlessCompiler.Arguments compilerOptions(java.util.Collection<java.lang.String> value)
Set flags which will be passed to the compiler.- Parameters:
value
- A collection of compiler flags.- Returns:
- this.
-
useHostSystemClasses
public ClasspathlessCompiler.Arguments useHostSystemClasses(boolean value)
Set flag whether or not to use host system classes. System classes are those provided with the installation of JDK. If set to false, the compiler will use system classes provided by the provider.- Parameters:
value
- The value of the option.- Returns:
- this.
-
useHostJavaLangObject
public ClasspathlessCompiler.Arguments useHostJavaLangObject(boolean value)
Set flag whether or not to use host java.lang.Object class regardless of "useHostSystemClasses". Setting this to true is a workaround preventing processes running under the DCEVM JVM from crashing.- Parameters:
value
- The value of the option.- Returns:
- this.
-
-