Package io.github.cdklabs.projen
Class JsonFileOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.JsonFileOptions.Jsii$Proxy
-
- All Implemented Interfaces:
FileBaseOptions,JsonFileOptions,ObjectFileOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- JsonFileOptions
@Stability(Experimental) @Internal public static final class JsonFileOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements JsonFileOptions
An implementation forJsonFileOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.JsonFileOptions
JsonFileOptions.Builder, JsonFileOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(JsonFileOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theJsonFileOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)BooleangetAllowComments()(experimental) Allow the use of comments in this file.BooleangetCommitted()(experimental) Indicates whether this file should be committed to git or ignored.BooleangetEditGitignore()(experimental) Update the project's .gitignore file.BooleangetExecutable()(experimental) Whether the generated file should be marked as executable.BooleangetMarker()(experimental) Adds the projen marker to the file.BooleangetNewline()(experimental) Adds a newline at the end of the file.ObjectgetObj()(experimental) The object that will be serialized.BooleangetOmitEmpty()(experimental) Omits empty objects and arrays.BooleangetReadonly()(experimental) Whether the generated file should be readonly.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(JsonFileOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theJsonFileOptions.Builder.
-
-
Method Detail
-
getAllowComments
public final Boolean getAllowComments()
Description copied from interface:JsonFileOptions(experimental) Allow the use of comments in this file.Default: - false for .json files, true for .json5 and .jsonc files
- Specified by:
getAllowCommentsin interfaceJsonFileOptions
-
getNewline
public final Boolean getNewline()
Description copied from interface:JsonFileOptions(experimental) Adds a newline at the end of the file.Default: true
- Specified by:
getNewlinein interfaceJsonFileOptions
-
getObj
public final Object getObj()
Description copied from interface:ObjectFileOptions(experimental) The object that will be serialized. You can modify the object's contents before synthesis.Serialization of the object is similar to JSON.stringify with few enhancements:
- values that are functions will be called during synthesis and the result will be serialized - this allow to have lazy values.
Setwill be converted to arrayMapwill be converted to a plain object ({ key: value, ... }})RegExpwithout flags will be converted to string representation of the source
Default: {} an empty object (use `file.obj` to mutate).
- Specified by:
getObjin interfaceObjectFileOptions
-
getOmitEmpty
public final Boolean getOmitEmpty()
Description copied from interface:ObjectFileOptions(experimental) Omits empty objects and arrays.Default: false
- Specified by:
getOmitEmptyin interfaceObjectFileOptions
-
getCommitted
public final Boolean getCommitted()
Description copied from interface:FileBaseOptions(experimental) Indicates whether this file should be committed to git or ignored.By default, all generated files are committed and anti-tamper is used to protect against manual modifications.
Default: true
- Specified by:
getCommittedin interfaceFileBaseOptions
-
getEditGitignore
public final Boolean getEditGitignore()
Description copied from interface:FileBaseOptions(experimental) Update the project's .gitignore file.Default: true
- Specified by:
getEditGitignorein interfaceFileBaseOptions
-
getExecutable
public final Boolean getExecutable()
Description copied from interface:FileBaseOptions(experimental) Whether the generated file should be marked as executable.Default: false
- Specified by:
getExecutablein interfaceFileBaseOptions
-
getMarker
public final Boolean getMarker()
Description copied from interface:FileBaseOptions(experimental) Adds the projen marker to the file.Default: - marker will be included as long as the project is not ejected
- Specified by:
getMarkerin interfaceFileBaseOptions
-
getReadonly
public final Boolean getReadonly()
Description copied from interface:FileBaseOptions(experimental) Whether the generated file should be readonly.Default: true
- Specified by:
getReadonlyin interfaceFileBaseOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-