public class JavaScriptExpressionBuilder
extends java.lang.Object
A full path from the variable back to the root object must be provided. The SDK doesn't keep it, it's a user responsibility to save the path.
Modifier and Type | Class and Description |
---|---|
static interface |
JavaScriptExpressionBuilder.ExpressionComponentFormatter
Defines how the last component of qualified name should be built.
|
static interface |
JavaScriptExpressionBuilder.VariableAccess
Makes an input for the qualified name builder.
|
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
KEY_NOTATION_PROPERTY_NAME_PATTERN
A simplified pattern that checks whether dot notation could be used in the property accessor.
|
static JavaScriptExpressionBuilder.ExpressionComponentFormatter |
OBJECT_PROPERTY_NAME_BUILDER
Formats a variable as a property of some other object.
|
static java.util.Collection<java.lang.String> |
SEMI_INTERNAL_PROPERTY_NAMES
A collection of non-normative property names that still could be used as a regular property
in expressions.
|
static JavaScriptExpressionBuilder.ExpressionComponentFormatter |
SHORT_NAME
Formats a variable as fully described by its short name.
|
static JavaScriptExpressionBuilder.ExpressionComponentFormatter |
SHORT_NAME_PAREN
Formats a variable as fully described by its short name.
|
Constructor and Description |
---|
JavaScriptExpressionBuilder() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
buildQualifiedName(JavaScriptExpressionBuilder.VariableAccess variableAccess)
Builds fully qualified name for a variable.
|
static boolean |
checkArrayIndexValue(long l) |
static java.lang.Long |
parsePropertyNameAsArrayIndex(java.lang.String propertyName) |
public static final JavaScriptExpressionBuilder.ExpressionComponentFormatter SHORT_NAME
public static final JavaScriptExpressionBuilder.ExpressionComponentFormatter SHORT_NAME_PAREN
public static final JavaScriptExpressionBuilder.ExpressionComponentFormatter OBJECT_PROPERTY_NAME_BUILDER
public static final java.util.regex.Pattern KEY_NOTATION_PROPERTY_NAME_PATTERN
public static final java.util.Collection<java.lang.String> SEMI_INTERNAL_PROPERTY_NAMES
public static java.lang.String buildQualifiedName(JavaScriptExpressionBuilder.VariableAccess variableAccess)
JavaScriptExpressionBuilder.VariableAccess
, that provides a path back to the root object.public static java.lang.Long parsePropertyNameAsArrayIndex(java.lang.String propertyName)
public static boolean checkArrayIndexValue(long l)
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.