@Generated(value="jsii-pacmak/1.38.0 (build 717bef2)", date="2021-10-08T18:43:54.442Z") @Stability(value=Stable) public class Tokenization extends software.amazon.jsii.JsiiObject
Modifier | Constructor and Description |
---|---|
protected |
Tokenization(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Tokenization(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static Boolean |
isResolvable(Object obj)
Return whether the given object is an IResolvable object.
|
static Object |
resolve(Object obj,
ResolveOptions options)
Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.
|
static IResolvable |
reverse(Object x)
Reverse any value into a Resolvable, if possible.
|
static IResolvable |
reverse(Object x,
ReverseOptions options)
Reverse any value into a Resolvable, if possible.
|
static IResolvable |
reverseCompleteString(String s)
Un-encode a string which is either a complete encoded token, or doesn't contain tokens at all.
|
static IResolvable |
reverseList(List<String> l)
Un-encode a Tokenized value from a list.
|
static IResolvable |
reverseNumber(Number n)
Un-encode a Tokenized value from a number.
|
static TokenizedStringFragments |
reverseString(String s)
Un-encode a string potentially containing encoded tokens.
|
static String |
stringifyNumber(Number x)
Stringify a number directly or lazily if it's a Token.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected Tokenization(software.amazon.jsii.JsiiObjectRef objRef)
protected Tokenization(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static Boolean isResolvable(@NotNull Object obj)
This is different from Token.isUnresolved() which will also check for encoded Tokens, whereas this method will only do a type check on the given object.
obj
- This parameter is required.@Stability(value=Stable) @NotNull public static Object resolve(@NotNull Object obj, @NotNull ResolveOptions options)
Values can only be primitives, arrays or tokens. Other objects (i.e. with methods) will be rejected.
obj
- The object to resolve. This parameter is required.options
- Prefix key path components for diagnostics. This parameter is required.@Stability(value=Stable) @Nullable public static IResolvable reverse(@NotNull Object x, @Nullable ReverseOptions options)
In case of a string, the string must not be a concatenation.
x
- This parameter is required.options
- @Stability(value=Stable) @Nullable public static IResolvable reverse(@NotNull Object x)
In case of a string, the string must not be a concatenation.
x
- This parameter is required.@Stability(value=Stable) @Nullable public static IResolvable reverseCompleteString(@NotNull String s)
It's illegal for the string to be a concatenation of an encoded token and something else.
s
- This parameter is required.@Stability(value=Stable) @Nullable public static IResolvable reverseList(@NotNull List<String> l)
l
- This parameter is required.@Stability(value=Stable) @Nullable public static IResolvable reverseNumber(@NotNull Number n)
n
- This parameter is required.@Stability(value=Stable) @NotNull public static TokenizedStringFragments reverseString(@NotNull String s)
s
- This parameter is required.Copyright © 2021. All rights reserved.