@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:00:45.960Z") @Stability(value=Experimental) 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)
(experimental) Return whether the given object is an IResolvable object.
|
static Object |
resolve(Object obj,
ResolveOptions options)
(experimental) Resolves an object by evaluating all tokens and removing any undefined or empty objects or arrays.
|
static IResolvable |
reverse(Object x)
(experimental) Reverse any value into a Resolvable, if possible.
|
static IResolvable |
reverse(Object x,
ReverseOptions options)
(experimental) Reverse any value into a Resolvable, if possible.
|
static IResolvable |
reverseCompleteString(String s)
(experimental) Un-encode a string which is either a complete encoded token, or doesn't contain tokens at all.
|
static IResolvable |
reverseList(List<String> l)
(experimental) Un-encode a Tokenized value from a list.
|
static IResolvable |
reverseNumber(Number n)
(experimental) Un-encode a Tokenized value from a number.
|
static TokenizedStringFragments |
reverseString(String s)
(experimental) Un-encode a string potentially containing encoded tokens.
|
static String |
stringifyNumber(Number x)
(experimental) Stringify a number directly or lazily if it's a Token.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Tokenization(software.amazon.jsii.JsiiObjectRef objRef)
protected Tokenization(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @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=Experimental) @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=Experimental) @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=Experimental) @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=Experimental) @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=Experimental) @Nullable public static IResolvable reverseList(@NotNull List<String> l)
l - This parameter is required.@Stability(value=Experimental) @Nullable public static IResolvable reverseNumber(@NotNull Number n)
n - This parameter is required.@Stability(value=Experimental) @NotNull public static TokenizedStringFragments reverseString(@NotNull String s)
s - This parameter is required.Copyright © 2021. All rights reserved.