TokenizedStringFragments
Fragments of a concatenated string containing stringified Tokens.
Initializers
import { TokenizedStringFragments } from '@alicloud/ros-cdk-core'
new TokenizedStringFragments()
Name | Type | Description |
---|---|---|
Methods
Name | Description |
---|---|
addIntrinsic |
No description. |
addLiteral |
No description. |
addToken |
No description. |
join |
Combine the string fragments using the given joiner. |
mapTokens |
Apply a transformation function to all tokens in the string. |
addIntrinsic
public addIntrinsic(value: any): void
- Type: any
addLiteral
public addLiteral(lit: any): void
- Type: any
addToken
public addToken(token: IResolvable): void
- Type: IResolvable
join
public join(concat: IFragmentConcatenator): any
Combine the string fragments using the given joiner.
If there are any
- Type: IFragmentConcatenator
mapTokens
public mapTokens(mapper: ITokenMapper): TokenizedStringFragments
Apply a transformation function to all tokens in the string.
- Type: ITokenMapper
Properties
Name | Type | Description |
---|---|---|
firstValue |
any |
No description. |
length |
number |
No description. |
tokens |
IResolvable[] |
Return all Tokens from this string. |
firstToken |
IResolvable |
No description. |
firstValue
Required
public readonly firstValue: any;
- Type: any
length
Required
public readonly length: number;
- Type: number
tokens
Required
public readonly tokens: IResolvable[];
- Type: IResolvable[]
Return all Tokens from this string.
firstToken
Optional
public readonly firstToken: IResolvable;
- Type: IResolvable