Package edu.wpi.grip.core.settings
Class CodeGenerationSettings.Builder
- java.lang.Object
-
- edu.wpi.grip.core.settings.CodeGenerationSettings.Builder
-
- Enclosing class:
- CodeGenerationSettings
public static final class CodeGenerationSettings.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeGenerationSettings
build()
Builds a newCodeGenerationSettings
object.CodeGenerationSettings.Builder
className(java.lang.String className)
Sets the generated class name.CodeGenerationSettings.Builder
implementVisionPipeline(boolean implementVisionPipeline)
Sets if the generated pipeline should implement the WPILib API.CodeGenerationSettings.Builder
language(java.lang.String language)
Sets the language.CodeGenerationSettings.Builder
moduleName(java.lang.String moduleName)
Sets the module name (also file name) of the generated Python class.CodeGenerationSettings.Builder
packageName(java.lang.String packageName)
Sets the package of the generated Java class.CodeGenerationSettings.Builder
saveDir(java.lang.String saveDir)
Sets the directory code should be generated in.
-
-
-
Method Detail
-
language
public CodeGenerationSettings.Builder language(java.lang.String language)
Sets the language. Must be one of "Java", "C++", "Python.
-
className
public CodeGenerationSettings.Builder className(java.lang.String className)
Sets the generated class name.
-
saveDir
public CodeGenerationSettings.Builder saveDir(java.lang.String saveDir)
Sets the directory code should be generated in.
-
implementVisionPipeline
public CodeGenerationSettings.Builder implementVisionPipeline(boolean implementVisionPipeline)
Sets if the generated pipeline should implement the WPILib API.
-
packageName
public CodeGenerationSettings.Builder packageName(java.lang.String packageName)
Sets the package of the generated Java class.
-
moduleName
public CodeGenerationSettings.Builder moduleName(java.lang.String moduleName)
Sets the module name (also file name) of the generated Python class.
-
build
public CodeGenerationSettings build()
Builds a newCodeGenerationSettings
object. This ensures that every required option has been set.
-
-