Package edu.wpi.grip.core.settings
Class CodeGenerationSettings
- java.lang.Object
-
- edu.wpi.grip.core.settings.CodeGenerationSettings
-
public class CodeGenerationSettings extends java.lang.Object
Holds options for code generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeGenerationSettings.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASS_NAME
static CodeGenerationSettings
DEFAULT_SETTINGS
The default code generation settings.static java.lang.String
IMPLEMENT_WPILIB_PIPELINE
static java.lang.String
LANGUAGE
static java.lang.String
MODULE_NAME
static java.lang.String
PACKAGE_NAME
static java.lang.String
SAVE_DIR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CodeGenerationSettings.Builder
builder()
static CodeGenerationSettings.Builder
builder(CodeGenerationSettings defaultSettings)
Creates a builder with defaults from the given settings.java.lang.String
getClassName()
java.lang.String
getLanguage()
java.lang.String
getModuleName()
java.lang.String
getPackageName()
java.lang.String
getSaveDir()
boolean
shouldImplementWpilibPipeline()
-
-
-
Field Detail
-
LANGUAGE
public static final java.lang.String LANGUAGE
- See Also:
- Constant Field Values
-
CLASS_NAME
public static final java.lang.String CLASS_NAME
- See Also:
- Constant Field Values
-
IMPLEMENT_WPILIB_PIPELINE
public static final java.lang.String IMPLEMENT_WPILIB_PIPELINE
- See Also:
- Constant Field Values
-
SAVE_DIR
public static final java.lang.String SAVE_DIR
- See Also:
- Constant Field Values
-
PACKAGE_NAME
public static final java.lang.String PACKAGE_NAME
- See Also:
- Constant Field Values
-
MODULE_NAME
public static final java.lang.String MODULE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SETTINGS
public static final CodeGenerationSettings DEFAULT_SETTINGS
The default code generation settings.
Default Values Language Java Class name GripPipeline Implement WPILib API false Save directory User home Java package Default package Python module grip
-
-
Method Detail
-
getLanguage
public java.lang.String getLanguage()
-
getClassName
public java.lang.String getClassName()
-
shouldImplementWpilibPipeline
public boolean shouldImplementWpilibPipeline()
-
getSaveDir
public java.lang.String getSaveDir()
-
getPackageName
public java.lang.String getPackageName()
-
getModuleName
public java.lang.String getModuleName()
-
builder
public static CodeGenerationSettings.Builder builder()
-
builder
public static CodeGenerationSettings.Builder builder(CodeGenerationSettings defaultSettings)
Creates a builder with defaults from the given settings.- Parameters:
defaultSettings
- the default settings for the builder to use- Returns:
- a settings builder
-
-