Class TokenizedStringFragments
Fragments of a concatenated string containing stringified Tokens.
Inheritance
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TokenizedStringFragments : DeputyBase
Syntax (vb)
Public Class TokenizedStringFragments
Inherits DeputyBase
Remarks
ExampleMetadata: fixture=_generated
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();
Synopsis
Constructors
TokenizedStringFragments() | |
TokenizedStringFragments(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
TokenizedStringFragments(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
FirstToken | |
FirstValue | |
Length | |
Tokens | Return all Tokens from this string. |
Methods
AddIntrinsic(Object) | |
AddLiteral(Object) | |
AddToken(IResolvable) | |
Join(IFragmentConcatenator) | Combine the string fragments using the given joiner. |
MapTokens(ITokenMapper) | Apply a transformation function to all tokens in the string. |
Constructors
TokenizedStringFragments()
public TokenizedStringFragments()
TokenizedStringFragments(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected TokenizedStringFragments(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
TokenizedStringFragments(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected TokenizedStringFragments(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
FirstToken
FirstValue
public virtual object FirstValue { get; }
Property Value
System.Object
Length
public virtual double Length { get; }
Property Value
System.Double
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 System.Object
AddLiteral(Object)
public virtual void AddLiteral(object lit)
Parameters
- lit System.Object
AddToken(IResolvable)
Join(IFragmentConcatenator)
Combine the string fragments using the given joiner.
public virtual object Join(IFragmentConcatenator concat)
Parameters
- concat IFragmentConcatenator
Returns
System.Object
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
Returns