Class TokenizedStringFragments
Fragments of a concatenated string containing stringified Tokens.
public class TokenizedStringFragments : DeputyBase
- Inheritance
-
TokenizedStringFragments
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var tokenizedStringFragments = new TokenizedStringFragments();
Remarks
ExampleMetadata: fixture=_generated
Constructors
TokenizedStringFragments()
public TokenizedStringFragments()
Properties
FirstToken
public virtual IResolvable? FirstToken { get; }
Property Value
FirstValue
public virtual object FirstValue { get; }
Property Value
Length
public virtual double Length { get; }
Property Value
Tokens
Return all Tokens from this string.
public virtual IResolvable[] Tokens { get; }
Property Value
Methods
AddIntrinsic(object)
public virtual void AddIntrinsic(object value)
Parameters
value
object
AddLiteral(object)
public virtual void AddLiteral(object lit)
Parameters
lit
object
AddToken(IResolvable)
public virtual void AddToken(IResolvable token)
Parameters
token
IResolvable
Join(IFragmentConcatenator)
Combine the string fragments using the given joiner.
public virtual object Join(IFragmentConcatenator concat)
Parameters
concat
IFragmentConcatenator
Returns
Remarks
If there are any
MapTokens(ITokenMapper)
Apply a transformation function to all tokens in the string.
public virtual TokenizedStringFragments MapTokens(ITokenMapper mapper)
Parameters
mapper
ITokenMapper