@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.395Z") @Stability(value=Experimental) public abstract class FileBase extends Component
| Modifier and Type | Field and Description |
|---|---|
static String |
PROJEN_MARKER
(experimental) The marker to embed in files in order to identify them as projen files.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FileBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FileBase(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
FileBase(Project project,
String filePath) |
protected |
FileBase(Project project,
String filePath,
FileBaseOptions options) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsolutePath()
(experimental) The absolute path of this file.
|
Boolean |
getExecutable()
(experimental) Indicates if the file should be marked as executable.
|
String |
getPath()
(experimental) The file path, relative to the project root.
|
Boolean |
getReadonly()
(experimental) Indicates if the file should be read-only or read-write.
|
void |
setExecutable(Boolean value)
(experimental) Indicates if the file should be marked as executable.
|
void |
setReadonly(Boolean value)
(experimental) Indicates if the file should be read-only or read-write.
|
void |
synthesize()
(experimental) Writes the file to the project's output directory.
|
protected abstract String |
synthesizeContent(IResolver resolver)
(experimental) Implemented by derived classes and returns the contents of the file to emit.
|
getProject, postSynthesize, preSynthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final String PROJEN_MARKER
This marker is used to prune these files before synthesis.
protected FileBase(software.amazon.jsii.JsiiObjectRef objRef)
protected FileBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected FileBase(@NotNull
Project project,
@NotNull
String filePath,
@Nullable
FileBaseOptions options)
project - This parameter is required.filePath - This parameter is required.options - @Stability(value=Experimental) public void synthesize()
synthesize in class Component@Stability(value=Experimental) @Nullable protected abstract String synthesizeContent(@NotNull IResolver resolver)
resolver - Call `resolver.resolve(obj)` on any objects in order to resolve token functions. This parameter is required.@Stability(value=Experimental) @NotNull public String getAbsolutePath()
@Stability(value=Experimental) @NotNull public String getPath()
@Stability(value=Experimental) @NotNull public Boolean getExecutable()
@Stability(value=Experimental)
public void setExecutable(@NotNull
Boolean value)
@Stability(value=Experimental) @NotNull public Boolean getReadonly()
@Stability(value=Experimental)
public void setReadonly(@NotNull
Boolean value)
Copyright © 2021. All rights reserved.