public final class RuntimeCall extends java.lang.Object implements ExpressionNode
RuntimeCall
is a special expression which provides access to utility functions from the runtime.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORMAT
The name of the
RuntimeCall function that will process string
formatting. |
static java.lang.String |
I18N
The name of the
RuntimeCall function that will process
i18n. |
static java.lang.String |
INCLUDE
The name of the
RuntimeCall function that will perform
script execution delegation. |
static java.lang.String |
JOIN
The name of the
RuntimeCall function that will process
join operations on arrays. |
static java.lang.String |
RESOURCE
The name of the
RuntimeCall function that will perform
resource inclusion in the rendering process. |
static java.lang.String |
URI_MANIPULATION
The name of the
RuntimeCall function that will provide
URI manipulation support. |
static java.lang.String |
USE
The name of the
RuntimeCall function that will provide
the support for loading Use-API objects. |
static java.lang.String |
XSS
The name of the
RuntimeCall function that will provide
XSS escaping and filtering support. |
Constructor and Description |
---|
RuntimeCall(java.lang.String functionName,
ExpressionNode... arguments)
Creates a
RuntimeCall based on a functionName and an array of arguments . |
RuntimeCall(java.lang.String functionName,
java.util.List<ExpressionNode> arguments)
Creates a
RuntimeCall based on a functionName and a list of arguments . |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> visitor)
Accept a visitor to process this node.
|
java.util.List<ExpressionNode> |
getArguments()
Get the nodes of the argument calls.
|
java.lang.String |
getFunctionName()
Get the name of the runtime call.
|
public static final java.lang.String FORMAT
The name of the RuntimeCall
function that will process string
formatting. The function will receive the following parameters:
For more details check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#122-format.
public static final java.lang.String I18N
The name of the RuntimeCall
function that will process
i18n. The function will receive the following parameters:
ResourceBundle.getBundle(String, java.util.Locale)
For more details check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#123-i18n.
public static final java.lang.String JOIN
The name of the RuntimeCall
function that will process
join operations on arrays. The function will receive the following parameters:
For more details check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#124-array-join.
public static final java.lang.String URI_MANIPULATION
The name of the RuntimeCall
function that will provide
URI manipulation support. The function will receive the following parameters:
For more details check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#125-uri-manipulation.
public static final java.lang.String XSS
The name of the RuntimeCall
function that will provide
XSS escaping and filtering support. The function will receive the following parameters:
MarkupContext
For more details check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#121-display-context.
public static final java.lang.String INCLUDE
The name of the RuntimeCall
function that will perform
script execution delegation. The function will receive the following parameters:
For more details about the supported options check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#228-include.
public static final java.lang.String RESOURCE
The name of the RuntimeCall
function that will perform
resource inclusion in the rendering process. The function will receive the following parameters:
For more details about the supported options check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#229-resource.
public static final java.lang.String USE
The name of the RuntimeCall
function that will provide
the support for loading Use-API objects. The function will receive the following parameters:
For more details check https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.2/SPECIFICATION.md#221-use.
public RuntimeCall(java.lang.String functionName, ExpressionNode... arguments)
RuntimeCall
based on a functionName
and an array of arguments
.functionName
- the name of the function identifying the runtime callarguments
- the arguments passed to the runtime callpublic RuntimeCall(java.lang.String functionName, java.util.List<ExpressionNode> arguments)
RuntimeCall
based on a functionName
and a list of arguments
.functionName
- the name of the function identifying the runtime callarguments
- the arguments passed to the runtime callpublic java.lang.String getFunctionName()
public java.util.List<ExpressionNode> getArguments()
public <T> T accept(NodeVisitor<T> visitor)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorCopyright © 2010 - 2020 Adobe. All Rights Reserved