Skip to main content
Fragments of a concatenated string containing stringified Tokens.

Initializers

using Io.Cdktn;

new TokenizedStringFragments();
NameTypeDescription

Methods

NameDescription
AddEscapeNo description.
AddIntrinsicAdds an intrinsic fragment.
AddLiteralAdds a literal fragment.
AddTokenAdds a token fragment.
ConcatNo description.
JoinCombine the string fragments using the given joiner.
MapTokensApply a transformation function to all tokens in the string.

AddEscape

private void AddEscape(string Kind)

KindRequired

  • Type: string

AddIntrinsic

private void AddIntrinsic(object Value)
Adds an intrinsic fragment.

ValueRequired

  • Type: object
the intrinsic value to add.

AddLiteral

private void AddLiteral(object Lit)
Adds a literal fragment.

LitRequired

  • Type: object
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

NameTypeDescription
EscapesIResolvable[]Return all escape fragments from this string.
FirstValueobjectReturns the first value.
IntrinsicIResolvable[]Return all intrinsic fragments from this string.
LengthdoubleReturns the number of fragments.
LiteralsIResolvable[]Return all literals from this string.
TokensIResolvable[]Return all Tokens from this string.
FirstTokenIResolvableReturns the first token.

EscapesRequired

public IResolvable[] Escapes { get; }
Return all escape fragments from this string.

FirstValueRequired

public object FirstValue { get; }
  • Type: object
Returns the first value.

IntrinsicRequired

public IResolvable[] Intrinsic { get; }
Return all intrinsic fragments from this string.

LengthRequired

public double Length { get; }
  • Type: double
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.