Package com.hashicorp.cdktf
Class TokenizedStringFragments
java.lang.Object
software.amazon.jsii.JsiiObject
com.hashicorp.cdktf.TokenizedStringFragments
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-15T15:38:01.192Z")
@Stability(Experimental)
public class TokenizedStringFragments
extends software.amazon.jsii.JsiiObject
(experimental) Fragments of a concatenated string containing stringified Tokens.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTokenizedStringFragments(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTokenizedStringFragments(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddIntrinsic(Object value) (experimental) Adds an intrinsic fragment.voidaddLiteral(Object lit) (experimental) Adds a literal fragment.voidaddToken(IResolvable token) (experimental) Adds a token fragment.voidconcat(TokenizedStringFragments other) (experimental) Return all escape fragments from this string.(experimental) Returns the first token.(experimental) Returns the first value.(experimental) Return all intrinsic fragments from this string.(experimental) Returns the number of fragments.(experimental) Return all literals from this string.(experimental) Return all Tokens from this string.join(IFragmentConcatenator concat) (experimental) Combine the string fragments using the given joiner.mapTokens(IResolveContext context) (experimental) Apply a transformation function to all tokens in the string.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
TokenizedStringFragments
protected TokenizedStringFragments(software.amazon.jsii.JsiiObjectRef objRef) -
TokenizedStringFragments
protected TokenizedStringFragments(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
TokenizedStringFragments
@Stability(Experimental) public TokenizedStringFragments()
-
-
Method Details
-
addEscape
- Parameters:
kind- This parameter is required.
-
addIntrinsic
(experimental) Adds an intrinsic fragment.- Parameters:
value- the intrinsic value to add. This parameter is required.
-
addLiteral
(experimental) Adds a literal fragment.- Parameters:
lit- the literal to add. This parameter is required.
-
addToken
(experimental) Adds a token fragment.- Parameters:
token- the token to add. This parameter is required.
-
concat
- Parameters:
other- This parameter is required.
-
join
(experimental) Combine the string fragments using the given joiner.If there are any
- Parameters:
concat- This parameter is required.
-
mapTokens
@Stability(Experimental) @NotNull public TokenizedStringFragments mapTokens(@NotNull IResolveContext context) (experimental) Apply a transformation function to all tokens in the string.- Parameters:
context- This parameter is required.
-
getEscapes
(experimental) Return all escape fragments from this string. -
getFirstValue
(experimental) Returns the first value. -
getIntrinsic
(experimental) Return all intrinsic fragments from this string. -
getLength
(experimental) Returns the number of fragments. -
getLiterals
(experimental) Return all literals from this string. -
getTokens
(experimental) Return all Tokens from this string. -
getFirstToken
(experimental) Returns the first token.
-