Class TokenizedStringFragments

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.core.TokenizedStringFragments
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.159Z") @Stability(Stable) public class TokenizedStringFragments extends software.amazon.jsii.JsiiObject
Fragments of a concatenated string containing stringified Tokens.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.core.*;
 TokenizedStringFragments tokenizedStringFragments = new TokenizedStringFragments();
 
  • Constructor Details

    • TokenizedStringFragments

      protected TokenizedStringFragments(software.amazon.jsii.JsiiObjectRef objRef)
    • TokenizedStringFragments

      protected TokenizedStringFragments(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • TokenizedStringFragments

      @Stability(Stable) public TokenizedStringFragments()
  • Method Details

    • addIntrinsic

      @Stability(Stable) public void addIntrinsic(@NotNull Object value)
      Parameters:
      value - This parameter is required.
    • addLiteral

      @Stability(Stable) public void addLiteral(@NotNull Object lit)
      Parameters:
      lit - This parameter is required.
    • addToken

      @Stability(Stable) public void addToken(@NotNull IResolvable token)
      Parameters:
      token - This parameter is required.
    • join

      @Stability(Stable) @NotNull public Object join(@NotNull IFragmentConcatenator concat)
      Combine the string fragments using the given joiner.

      If there are any

      Parameters:
      concat - This parameter is required.
    • mapTokens

      @Stability(Stable) @NotNull public TokenizedStringFragments mapTokens(@NotNull ITokenMapper mapper)
      Apply a transformation function to all tokens in the string.

      Parameters:
      mapper - This parameter is required.
    • getFirstValue

      @Stability(Stable) @NotNull public Object getFirstValue()
    • getLength

      @Stability(Stable) @NotNull public Number getLength()
    • getTokens

      @Stability(Stable) @NotNull public List<IResolvable> getTokens()
      Return all Tokens from this string.
    • getFirstToken

      @Stability(Stable) @Nullable public IResolvable getFirstToken()