TokenizedStringFragments
Fragments of a concatenated string containing stringified Tokens.
Initializers
import com.aliyun.ros.cdk.core.TokenizedStringFragments;
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 void addIntrinsic(java.lang.Object value)
- Type: java.lang.Object
addLiteral
public void addLiteral(java.lang.Object lit)
- Type: java.lang.Object
addToken
public void addToken(IResolvable token)
- Type: IResolvable
join
public java.lang.Object join(IFragmentConcatenator concat)
Combine the string fragments using the given joiner.
If there are any
- Type: IFragmentConcatenator
mapTokens
public TokenizedStringFragments mapTokens(ITokenMapper mapper)
Apply a transformation function to all tokens in the string.
- Type: ITokenMapper
Properties
Name | Type | Description |
---|---|---|
firstValue |
java.lang.Object |
No description. |
length |
java.lang.Number |
No description. |
tokens |
java.util.List<IResolvable> |
Return all Tokens from this string. |
firstToken |
IResolvable |
No description. |
firstValue
Required
public java.lang.Object getFirstValue();
- Type: java.lang.Object
length
Required
public java.lang.Number getLength();
- Type: java.lang.Number
tokens
Required
public java.util.List<IResolvable> getTokens();
- Type: java.util.List<IResolvable>
Return all Tokens from this string.
firstToken
Optional
public IResolvable getFirstToken();
- Type: IResolvable