@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.452Z") @Stability(value=Experimental) public class TextFile extends FileBase
| Modifier and Type | Class and Description |
|---|---|
static class |
TextFile.Builder
(experimental) A fluent builder for
TextFile. |
PROJEN_MARKER| Modifier | Constructor and Description |
|---|---|
protected |
TextFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TextFile(software.amazon.jsii.JsiiObjectRef objRef) |
|
TextFile(Project project,
String filePath)
(experimental) Defines a text file.
|
|
TextFile(Project project,
String filePath,
TextFileOptions options)
(experimental) Defines a text file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLine(String line)
(experimental) Adds a line to the text file.
|
protected String |
synthesizeContent(IResolver _)
(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 TextFile(software.amazon.jsii.JsiiObjectRef objRef)
protected TextFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public TextFile(@NotNull
Project project,
@NotNull
String filePath,
@Nullable
TextFileOptions options)
project - The project. This parameter is required.filePath - File path. This parameter is required.options - Options.@Stability(value=Experimental)
public void addLine(@NotNull
String line)
line - the line to add (can use tokens). This parameter is required.@Stability(value=Experimental) @Nullable protected String synthesizeContent(@NotNull IResolver _)
synthesizeContent in class FileBase_ - This parameter is required.Copyright © 2021. All rights reserved.