Class ProfilableRunConfiguration.Builder<C extends ProfilableRunConfiguration,B extends ProfilableRunConfiguration.Builder<C,B>>
- java.lang.Object
-
- org.eclipse.epsilon.common.launch.ProfilableRunConfiguration.Builder<C,B>
-
- Direct Known Subclasses:
EolRunConfiguration.Builder
- Enclosing class:
- ProfilableRunConfiguration
public abstract static class ProfilableRunConfiguration.Builder<C extends ProfilableRunConfiguration,B extends ProfilableRunConfiguration.Builder<C,B>> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<C>
configClass
java.lang.Integer
id
java.nio.file.Path
outputFile
boolean
profileExecution
int
repeats
java.nio.file.Path
script
boolean
showResults
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract C
build()
protected C
buildReflective(java.util.function.Supplier<? extends C> alternative)
B
profileExecution()
B
profileExecution(boolean profile)
B
showResults()
B
showResults(boolean show)
B
with(java.util.function.Consumer<B> builderFunction)
B
withId(int id)
B
withOutputFile(java.lang.String path)
B
withOutputFile(java.nio.file.Path output)
B
withProfiling()
B
withRepeats(int repetition)
B
withResults()
B
withScript(java.lang.String path)
B
withScript(java.nio.file.Path scriptPath)
-
-
-
Field Detail
-
configClass
protected java.lang.Class<C extends ProfilableRunConfiguration> configClass
-
repeats
public int repeats
-
id
public java.lang.Integer id
-
showResults
public boolean showResults
-
profileExecution
public boolean profileExecution
-
script
public java.nio.file.Path script
-
outputFile
public java.nio.file.Path outputFile
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(java.lang.Class<C> runConfigClass)
-
-
Method Detail
-
build
public abstract C build() throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
-
buildReflective
protected C buildReflective(java.util.function.Supplier<? extends C> alternative) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
withScript
public B withScript(java.nio.file.Path scriptPath)
-
withScript
public B withScript(java.lang.String path)
-
withOutputFile
public B withOutputFile(java.nio.file.Path output)
-
withOutputFile
public B withOutputFile(java.lang.String path)
-
withId
public B withId(int id)
-
withResults
public B withResults()
-
showResults
public B showResults()
-
showResults
public B showResults(boolean show)
-
withRepeats
public B withRepeats(int repetition)
-
withProfiling
public B withProfiling()
-
profileExecution
public B profileExecution()
-
profileExecution
public B profileExecution(boolean profile)
-
-