@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.416Z") @Stability(value=Experimental) public abstract class ObjectFile extends FileBase
PROJEN_MARKER| Modifier | Constructor and Description |
|---|---|
protected |
ObjectFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ObjectFile(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
ObjectFile(Project project,
String filePath,
ObjectFileOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeletionOverride(String path)
(experimental) Syntactic sugar for `addOverride(path, undefined)`.
|
void |
addOverride(String path,
Object value)
(experimental) Adds an override to the synthesized object file.
|
Boolean |
getMarker()
(experimental) Indicates if the projen marker JSON-comment will be added to the output object.
|
Boolean |
getOmitEmpty()
(experimental) Indicates if empty objects and arrays are omitted from the output object.
|
void |
setMarker(Boolean value)
(experimental) Indicates if the projen marker JSON-comment will be added to the output object.
|
protected String |
synthesizeContent(IResolver resolver)
(experimental) Implemented by derived classes and returns the contents of the file to emit.
|
getAbsolutePath, getExecutable, getPath, getReadonly, setExecutable, setReadonly, synthesizegetProject, postSynthesize, preSynthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected ObjectFile(software.amazon.jsii.JsiiObjectRef objRef)
protected ObjectFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected ObjectFile(@NotNull
Project project,
@NotNull
String filePath,
@NotNull
ObjectFileOptions options)
project - This parameter is required.filePath - This parameter is required.options - This parameter is required.@Stability(value=Experimental)
public void addDeletionOverride(@NotNull
String path)
path - The path of the value to delete. This parameter is required.@Stability(value=Experimental)
public void addOverride(@NotNull
String path,
@NotNull
Object value)
If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.
To include a literal . in the property name, prefix with a \. In most
programming languages you will need to write this as "\\." because the
\ itself will need to be escaped.
For example,
// Example automatically generated from non-compiling source. May contain errors.
project.tsconfig.file.addOverride('compilerOptions.alwaysStrict', true);
project.tsconfig.file.addOverride('compilerOptions.lib', ['dom', 'dom.iterable', 'esnext']);
would add the overrides
"compilerOptions": {
"alwaysStrict": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
]
...
}
...
path - - The path of the property, you can use dot notation to override values in complex types. This parameter is required.value - - The value. This parameter is required.@Stability(value=Experimental) @Nullable protected String synthesizeContent(@NotNull IResolver resolver)
synthesizeContent in class FileBaseresolver - This parameter is required.@Stability(value=Experimental) @NotNull public Boolean getOmitEmpty()
@Stability(value=Experimental) @NotNull public Boolean getMarker()
@Stability(value=Experimental)
public void setMarker(@NotNull
Boolean value)
Copyright © 2021. All rights reserved.