@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.441Z") @Stability(value=Experimental) public class SourceCode extends Component
| Modifier and Type | Class and Description |
|---|---|
static class |
SourceCode.Builder
(experimental) A fluent builder for
SourceCode. |
| Modifier | Constructor and Description |
|---|---|
protected |
SourceCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SourceCode(software.amazon.jsii.JsiiObjectRef objRef) |
|
SourceCode(Project project,
String filePath) |
|
SourceCode(Project project,
String filePath,
SourceCodeOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
(experimental) Decreases the indentation level and closes a code block.
|
void |
close(String code)
(experimental) Decreases the indentation level and closes a code block.
|
void |
line()
(experimental) Emit a line of code.
|
void |
line(String code)
(experimental) Emit a line of code.
|
void |
open()
(experimental) Opens a code block and increases the indentation level.
|
void |
open(String code)
(experimental) Opens a code block and increases the indentation level.
|
getProject, postSynthesize, preSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected SourceCode(software.amazon.jsii.JsiiObjectRef objRef)
protected SourceCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public SourceCode(@NotNull
Project project,
@NotNull
String filePath,
@Nullable
SourceCodeOptions options)
project - This parameter is required.filePath - This parameter is required.options - @Stability(value=Experimental)
public void close(@Nullable
String code)
code - The code after the block is closed (e.g. `}`).@Stability(value=Experimental) public void close()
@Stability(value=Experimental)
public void line(@Nullable
String code)
code - The contents, if not specified, just adds a newline.@Stability(value=Experimental) public void line()
@Stability(value=Experimental)
public void open(@Nullable
String code)
code - The code before the block starts (e.g. `export class {`).@Stability(value=Experimental) public void open()
Copyright © 2021. All rights reserved.