Documentation Index
Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Fragments of a concatenated string containing stringified Tokens.
Initializers
using Io.Cdktn;
new TokenizedStringFragments();
Methods
| Name | Description |
|---|
AddEscape | No description. |
AddIntrinsic | Adds an intrinsic fragment. |
AddLiteral | Adds a literal fragment. |
AddToken | Adds a token fragment. |
Concat | No description. |
Join | Combine the string fragments using the given joiner. |
MapTokens | Apply a transformation function to all tokens in the string. |
AddEscape
private void AddEscape(string Kind)
KindRequired
AddIntrinsic
private void AddIntrinsic(object Value)
Adds an intrinsic fragment.
ValueRequired
the intrinsic value to add.
AddLiteral
private void AddLiteral(object Lit)
Adds a literal fragment.
LitRequired
the literal to add.
AddToken
private void AddToken(IResolvable Token)
Adds a token fragment.
TokenRequired
the token to add.
Concat
private void Concat(TokenizedStringFragments Other)
OtherRequired
Join
private object Join(IFragmentConcatenator Concat)
Combine the string fragments using the given joiner.
If there are any
ConcatRequired
MapTokens
private TokenizedStringFragments MapTokens(IResolveContext Context)
Apply a transformation function to all tokens in the string.
ContextRequired
Properties
| Name | Type | Description |
|---|
Escapes | IResolvable[] | Return all escape fragments from this string. |
FirstValue | object | Returns the first value. |
Intrinsic | IResolvable[] | Return all intrinsic fragments from this string. |
Length | double | Returns the number of fragments. |
Literals | IResolvable[] | Return all literals from this string. |
Tokens | IResolvable[] | Return all Tokens from this string. |
FirstToken | IResolvable | Returns the first token. |
EscapesRequired
public IResolvable[] Escapes { get; }
Return all escape fragments from this string.
FirstValueRequired
public object FirstValue { get; }
Returns the first value.
IntrinsicRequired
public IResolvable[] Intrinsic { get; }
Return all intrinsic fragments from this string.
LengthRequired
public double Length { get; }
Returns the number of fragments.
LiteralsRequired
public IResolvable[] Literals { get; }
Return all literals from this string.
TokensRequired
public IResolvable[] Tokens { get; }
Return all Tokens from this string.
FirstTokenOptional
public IResolvable FirstToken { get; }
Returns the first token.