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.91.0 (build 1b1f239)",
date="2023-12-20T16:43:16.345Z")
@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
ConstructorsModifierConstructorDescriptionprotected
TokenizedStringFragments
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
TokenizedStringFragments
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addIntrinsic
(Object value) (experimental) Adds an intrinsic fragment.void
addLiteral
(Object lit) (experimental) Adds a literal fragment.void
addToken
(IResolvable token) (experimental) Adds a token fragment.void
concat
(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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.
-