Class Expression
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> UnnamedComponent,VariableScope
The validate() methods validate that the expression is syntactically and semantically correct for the context in which it is used.
The expression value is a string as the user sees it. The resolved value has aliases replaced with IDs in backquotes (e.g. `L}10`). The value and resolved value are synchronized (changing one changes the other). Most users never need to worry about the resolved value.
An expression may be designated as a constant. This affects the value options and makes string quotes optional on input.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
DictionaryComponent.Diff<T extends DictionaryComponent>, DictionaryComponent.DiffSummary, DictionaryComponent.DiffTypeNested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object> Nested classes/interfaces inherited from interface oracle.rules.sdk2.ruleset.VariableScope
VariableScope.ExprLocation -
Field Summary
Fields inherited from class oracle.rules.sdk2.ruleset.RuleComponent
BUILTINFields inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
PROP_ACCESS, PROP_ACTION_SELECTED, PROP_ACTION_TABLE, PROP_ACTIVE, PROP_ACTUAL_TEST_OUTPUT_TABLE, PROP_ADHOC_TEST_VALIDATION, PROP_ADVANCED_MODE, PROP_AGGREGATE, PROP_AGGREGATE_TABLE, PROP_ALIAS, PROP_ALLOW_GAPS, PROP_ALWAYS_SELECTED, PROP_ARRAY, PROP_ARRAY_COMPONENT_TYPE, PROP_ARRAY_COMPONENT_TYPE_ID, PROP_ARRAY_FACT_TYPE_TABLE, PROP_AUTO_CONFLICT_RESOLUTION, PROP_AUTO_PATTERN_PROPERTY, PROP_AUTO_SYNC, PROP_BODY, PROP_BUCKET_ID_TABLE, PROP_BUCKET_SET, PROP_BUCKET_SET_ID, PROP_BUCKET_SET_TABLE, PROP_BUCKET_TABLE, PROP_CALENDAR_FORM, PROP_CHECK_RULE_FLOW, PROP_CHILD_DIMENSION_NODES, PROP_CONFLICT, PROP_CONFLICT_POLICY, PROP_CONNECTIVE, PROP_CONSTANT, PROP_CONSTRUCTOR, PROP_CONSTRUCTOR_TABLE, PROP_CREATION_UPDATE_NUMBER, PROP_CURSOR_POSITION, PROP_CUSTOM_BINDING, PROP_DATA_MODEL, PROP_DATA_SOURCE, PROP_DECISION_FUNCTION, PROP_DECISION_FUNCTION_ID, PROP_DECISION_FUNCTION_INPUT_TABLE, PROP_DECISION_FUNCTION_OUTPUT_TABLE, PROP_DECISION_FUNCTION_RULESET_TABLE, PROP_DECISION_FUNCTION_TABLE, PROP_DECISION_MODEL, PROP_DESCRIPTION, PROP_DF_FACT, PROP_DF_FACT_ID, PROP_DICT_LOADING_EXTENSION, PROP_DICTIONARY_LINK_TABLE, PROP_DIMENSION_NODE_TABLE, PROP_DIMENSION_TABLE, PROP_DISALLOW_ERROR_SUPPRESSION, PROP_DRAFT, PROP_DSL_ID, PROP_DSL_PARAMETER_TABLE, PROP_DSL_TABLE, PROP_DSL_VALUE, PROP_DT_ACTION_NODE_TABLE, PROP_DT_ACTION_PARAMETER_NAME, PROP_DTACTION_TABLE, PROP_DTRULE_TABLE, PROP_EFFECTIVE_END_DATE, PROP_EFFECTIVE_START_DATE, PROP_ENUM, PROP_ENUM_BUCKET_SET, PROP_ENUM_BUCKET_SET_ID, PROP_ENUM_TYPE, PROP_EXCEPTION_IDS, PROP_EXCEPTIONS, PROP_EXCLUDED, PROP_EXPECTED_TEST_OUTPUT_TABLE, PROP_EXPRESSION, PROP_EXPRESSION_TABLE, PROP_FACT_PATH, PROP_FACT_PATH_IDS, PROP_FACT_TABLE, PROP_FACT_TYPE, PROP_FACT_TYPE_ID, PROP_FACT_TYPE_IDS, PROP_FACT_TYPE_TABLE, PROP_FACT_TYPES, PROP_FIELD_TABLE, PROP_FINAL, PROP_FORM, PROP_FORMAL_PARAMETER_TABLE, PROP_FUNCTION, PROP_FUNCTION_ID, PROP_FUNCTION_SIGNATURE, PROP_FUNCTION_TABLE, PROP_GENERATED_FROM, PROP_GLOBAL_ALIAS, PROP_ID, PROP_INCLUDE_CHAINED_EXPR, PROP_INCLUDED, PROP_INTERFACE, PROP_INTERFACE_IDS, PROP_INTERFACES, PROP_IS_ABSTRACT, PROP_IS_CONSTANT, PROP_IS_ENUM, PROP_IS_FINAL, PROP_IS_JAXB2, PROP_IS_PRIMARY_KEY, PROP_IS_STATIC, PROP_IS_TOPLEVEL_VIEW_OBJECT, PROP_LEFT, PROP_LIFECYCLE, PROP_LIFECYCLE_DESCRIPTION, PROP_LINK_PATH, PROP_LIST, PROP_LIST_CONTENT_TYPE, PROP_LIST_CONTENT_TYPE_ID, PROP_LOCAL, PROP_LOGICAL, PROP_METHOD_TABLE, PROP_MODIFIERS, PROP_NAME, PROP_NAMESPACE, PROP_NESTED_TABLE, PROP_NO_CONFLICT, PROP_NO_RULE_FIRED_IS_ERROR, PROP_NODE_NAME, PROP_OPERATOR, PROP_OPERATOR_ID, PROP_ORDER_RULES_BY_BUCKET, PROP_OTHERWISE, PROP_OUTPUT_TYPES, PROP_OVERLOADED_PARAMETER_TABLE, PROP_OVERRIDDEN_BY, PROP_OVERRIDE, PROP_PACKAGE, PROP_PARAM, PROP_PARAM_EXPRESSION, PROP_PARAMETER_ALIAS, PROP_PARAMETER_ID, PROP_PARAMETER_LIST, PROP_PARAMETER_NAME, PROP_PARAMETER_REQUIRED, PROP_PARAMETER_TYPE_IDS, PROP_PARAMETER_TYPES, PROP_PARENT_DIMENSION_NODE, PROP_PATTERN_TABLE, PROP_PHRASE_SUGGESTION_FORM, PROP_PREFERENCES, PROP_PREFIX_LINKED_NAMES, PROP_PRIORITY, PROP_PRIVATE_BUCKET_SET, PROP_PROPERTIES, PROP_PROPERTY, PROP_PROPERTY_ID, PROP_PROPERTY_TABLE, PROP_PROPERTY_VALUE_TABLE, PROP_QUALIFIER_PATTERN, PROP_READABLE, PROP_REF_ID, PROP_REPORT_BYUSE_NAMES, PROP_REPORT_PATTERNS, PROP_RESOLVED_TARGET, PROP_RESOLVED_VALUE, PROP_RESOURCE_BUNDLE, PROP_RESTRICT_AUTO_SUGGESTIONS, PROP_RETURN_TYPE, PROP_RIGHT, PROP_RIGHT_SEPARATOR, PROP_RULE_EXEC_ALGORITHM, PROP_RULE_FIRING_LIMIT, PROP_RULE_FIRING_LIMIT_ERROR, PROP_RULE_REPORT_TABLE, PROP_RULE_SET_TABLE, PROP_RULE_SHEET_TABLE, PROP_RULE_TABLE, PROP_RULESET, PROP_RUN_AFTER, PROP_RUN_BEFORE, PROP_SERVICE_CONFIGURATION, PROP_SERVICE_NAME, PROP_SERVICE_NAMESPACE, PROP_SHARED_BUCKET_SET, PROP_SHARED_BUCKET_SET_ID, PROP_SHOW_CONSTANTS, PROP_SHOW_FUNCTIONS, PROP_SHOW_VARIABLES, PROP_SIMPLE_TEST_TABLE, PROP_SOURCE, PROP_STATELESS, PROP_STATIC, PROP_SUPER_CLASS, PROP_SUPER_CLASS_ID, PROP_SUPPORT_XPATH, PROP_SUPPORTS_XPATH_ENABLED, PROP_SYNC_MARK, PROP_SYSTEM, PROP_TARGET, PROP_TARGET_PACKAGE, PROP_TEST_CASE_TABLE, PROP_TEST_FORM, PROP_TEST_INPUT_TABLE, PROP_TEST_MODEL, PROP_TEST_RESULT_TABLE, PROP_TEST_SUITE_TABLE, PROP_TEST_TEMPLATE_TABLE, PROP_TIMESTAMP, PROP_TOKEN_UNDER_CURSOR, PROP_TRANSLATED_ALIAS, PROP_TRANSLATED_DESCRIPTION, PROP_TRANSLATED_GLOBAL_ALIAS, PROP_TRANSLATED_PARAMETER_LIST, PROP_TRANSLATED_QUALIFIER_PATTERN, PROP_TRANSLATED_VALUE, PROP_TRANSLATED_VARIABLE, PROP_TREE, PROP_TREE_MODE, PROP_TYPE, PROP_TYPE_ID, PROP_TYPE_IDS, PROP_TYPES, PROP_UNIQUE_RULESETS, PROP_UNSAVED_TRANSLATED_ALIAS, PROP_UNSAVED_TRANSLATED_DESCRIPTION, PROP_UNSAVED_TRANSLATED_GLOBAL_ALIAS, PROP_UNSAVED_TRANSLATED_QUALIFIER_PATTERN, PROP_UNSAVED_TRANSLATED_VALUE, PROP_UPDATE_NUMBER, PROP_UPDATE_TIME, PROP_VALIDATION, PROP_VALIDATION_UPDATE_NUMBER, PROP_VALUE, PROP_VALUES, PROP_VARIABLE, PROP_VARIABLE_TABLE, PROP_VERBAL_RULE_TABLE, PROP_VERSION, PROP_VERTICAL_ORIENTATION, PROP_VISIBILITY_FILTER, PROP_VISIBILITY_FILTER_ENABLED, PROP_VISIBLE, PROP_WEB_SERVICE, PROP_WRITABLE, PROP_XML_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppend the given string to the end of the existing Value Behavior is the same as the append method of java.lang.StringBuffer, except that a null value of str inserts the String "null".int[][]balanced()Matches up operators which come in pairs, such as ( ), then returns an array of ordered pairs of the matches.if the expression can be evaluated at design time, returns its literal value.Generic property getter.Get the DOIDs referenced by all directly or indirectly contained actions and expressionsif this expression is a reference to a rule test variable, return the expression aliased by the variable.Get the DOIDs referenced by this component or contained componentsString[]Deprecated.No replacement.Deprecated.String[]Deprecated.Get Constant Property.intDeprecated.String[]Get Constructor Property.intintvalue to use matching table entries, "" means use positional matchingget the name of the decision table action parameter associated with this expression Expressions are marked with this property in the Action of the DTAction and in the ExpressionTable of an associated DTActionNode to indicate the node supplies parameter values to the action.Get DTActionParameterName Property.Internal use Only.Get all ExprParsers that are directly or Indirectly referenced by this dictionary Object and its descendantsString[]Get Function Property.intString[]Get immutable variables (e.g. final variables, pattern variables)Get ImmutableVariable Property.intString[]Get variables that could be assignment targets E.g. non-final globals, pattern propertiesGet MutableVariable Property.intString[]Get Operator Property.intGet parameter aliasgetParameterAlias(boolean translate) Get possibly translated parameter aliasDOID[]Get possibly overloaded parameter typesString[]Get possibly overloaded parameter typesString[]getParameterTypes(boolean translate) Get possibly translated and overloaded parameter typesString[]Get the DOIDs referenced by this component (but not the contained components)Get Result Type ID, reparsing the expression if needed.booleangetRL(StringBuilder sb, Map<Object, Object> properties) public getRLbooleanGet Show constants in ValueOptionsbooleanGet Show functions and methods in ValueOptionsbooleanGet Show variables in ValueOptionsString[]If the cursor is in a token or white space preceeding the token, returns a description of the token.getValue()returns the String value of the ExpressiongetValue(boolean translate) get optionally translated value short forgetValueProperty().getValue(translate)String[]get some options for an expression value appropriate in this contextGet Value Property.intDeprecated.String[]Deprecated.intDeprecated.inScopeVariables(boolean includeAggregates, VariableScope.ExprLocation loc) By default, pass the request to the containerInsert the given string at the given position of the Value.booleanbooleanDeprecated.no replacementbooleanbooleantrue if, according to the data model, this Expression must be suppliedGeneric property setter.Insert the given string at the given position of the Value String.booleansame(Expression expr) Is this expression the same as expr?voidsetConstant(boolean flag) voidsetConstant(String constant) Deprecated.voidsetConstructor(String constructor) voidsetCursorPosition(int cursorPosition) voidsetCustomizable(boolean flag) Deprecated.no replacementvoidset this expression as a decision table action parameter with the given namevoidsetFunction(String function) voidsetImmutableVariable(String constant) voidsetLiteralValue(String literalValue) Shorthand forsetConstant(true); setValue(literalValue);voidsetMutableVariable(String variable) voidsetOperator(String operator) voidsetParameterRequired(boolean parameterRequired) Deprecated.No replacement.voidsetShowConstants(boolean showConstants) Set Show constants in ValueOptionsvoidsetShowConstructorsWithFunctions(boolean b) Include Constructors in the Function options listvoidsetShowFunctions(boolean showFunctions) Set Show functions and methods in ValueOptionsvoidsetShowVariables(boolean showVariables) Set Show variables in ValueOptionsvoidvoidsetVariable(String variable) Deprecated.int[]Matches up operators which come in pairs, such as ( ), then returns an array of integers indicating unmatched grouping operators.voidvalidate(List<SDKException> errors, List<SDKWarning> warnings) Validate and append errors and warnings.Methods inherited from class oracle.rules.sdk2.ruleset.UnnamedRuleComponent
init, isAliasDistinct, isNameDistinctMethods inherited from class oracle.rules.sdk2.ruleset.RuleComponent
get, getParent, getParentTable, getParentVariableScope, inScopeVariables, parentAction, parentActionContext, parentAutoBindingContext, parentFunction, parentPattern, parentRule, parentRuleBase, parentRuleCommon, parentRuleSheet, parentTest, parentVariable, parentVerbalRule, RHSRuleVariables, toString, toStringMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryComponent
_get, _put, clear, containsKey, containsValue, entrySet, forceSync, getAlias, getAlias, getAlias, getAlias, getAliasProperty, getContainedDiffs, getCustom, getDependents, getDescription, getDescription, getDescriptionProperty, getDiff, getDiffProperties, getDiffs, getFullyQualifiedAlias, getFullyQualifiedName, getIndex, getIndex, getName, getNameProperty, getNext, getNext, getObjectPath, getOptions, getPrevious, getPrevious, getProperties, getProperty, getSelected, getTranslatedAlias, getTranslatedAlias, getTranslatedDescription, hasConflict, hasDiff, init, isEmpty, isFullyQualifiedName, isSystemProperty, isUnsavedTranslatedAlias, isUnsavedTranslatedDescription, keySet, putAll, remove, removeDiff, setAlias, setAlias, setCustom, setDescription, setDescription, setName, setTranslatedAlias, setTranslatedDescription, size, validate, valuesMethods inherited from class oracle.rules.sdk2.dictionary.DictionaryObject
_clearID, equals, exists, getAEReferenceCount, getCombinedDataModel, getContainedIDs, getContainedIDs, getDataModel, getDictionary, getID, getIndent, getObjectType, getParentByClass, getParentComponent, getParentComponentTable, getParentObject, getRuleSet, getState, getWarnings, hashCode, isModified, setID, validate, validateMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface oracle.rules.sdk2.dictionary.UnnamedComponent
getAlias, getName, setAlias, setName
-
Constructor Details
-
Expression
-
-
Method Details
-
getValueProperty
Get Value Property.- Returns:
- ChoosableProperty
-
getValue
returns the String value of the Expression -
setValue
-
getValueOptions
get some options for an expression value appropriate in this context- Returns:
- array containing valid options for the value of this expression
-
getValueSelected
public int getValueSelected() -
getConstantProperty
Get Constant Property.- Returns:
- Boolean SettableProperty
-
isConstant
public boolean isConstant() -
setConstant
public void setConstant(boolean flag) -
getDTActionParameterNameProperty
Get DTActionParameterName Property.- Returns:
- String SettableProperty
-
getDTActionParameterName
get the name of the decision table action parameter associated with this expression Expressions are marked with this property in the Action of the DTAction and in the ExpressionTable of an associated DTActionNode to indicate the node supplies parameter values to the action.- Returns:
- String name, or "" if this is not a DTAction parameter.
- See Also:
-
setDTActionParameterName
set this expression as a decision table action parameter with the given name- Parameters:
name-
-
getImmutableVariableProperty
Get ImmutableVariable Property.- Returns:
- ChoosableProperty
-
getConstant
Deprecated. -
getImmutableVariable
-
setConstant
Deprecated. -
setImmutableVariable
-
getConstantOptions
Deprecated. -
getImmutableVariableOptions
Get immutable variables (e.g. final variables, pattern variables)- Returns:
- array of terms
-
getConstantSelected
Deprecated. -
getImmutableVariableSelected
public int getImmutableVariableSelected() -
getOperatorProperty
Get Operator Property.- Returns:
- ChoosableProperty
-
getOperator
-
setOperator
-
getOperatorOptions
-
getOperatorSelected
public int getOperatorSelected() -
getMutableVariableProperty
Get MutableVariable Property.- Returns:
- ChoosableProperty
-
getVariable
Deprecated. -
getMutableVariable
-
setVariable
Deprecated. -
setMutableVariable
-
getVariableOptions
Deprecated. -
getMutableVariableOptions
Get variables that could be assignment targets E.g. non-final globals, pattern properties- Returns:
- array of terms
-
getVariableSelected
Deprecated. -
getMutableVariableSelected
public int getMutableVariableSelected() -
getFunctionProperty
Get Function Property.- Returns:
- ChoosableProperty
-
getFunction
-
setFunction
-
getFunctionOptions
-
getFunctionSelected
public int getFunctionSelected() -
getConstructorProperty
Get Constructor Property.- Returns:
- ChoosableProperty
-
getConstructor
-
setConstructor
-
getConstructorOptions
-
getConstructorSelected
public int getConstructorSelected() -
getResultTypeID
Get Result Type ID, reparsing the expression if needed. -
getResultID
-
getResultToken
-
getExprParser
Internal use Only.- Returns:
- ExprParser
-
validate
Description copied from class:DictionaryComponentValidate and append errors and warnings.- Overrides:
validatein classDictionaryComponent<Expression>- Parameters:
errors- a List of error exceptions to append to.warnings- a List of warning exceptions to append to.- See Also:
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceUnnamedComponent- Overrides:
getPropertyNamesin classUnnamedRuleComponent<Expression>- Returns:
- Array of property names available.
-
getStoredPropertyNames
- Overrides:
getStoredPropertyNamesin classUnnamedRuleComponent<Expression>- Returns:
- Array of property names which are persisted in the order in which they appear in the schema.
-
getParameterName
-
getParameterAlias
Get parameter alias- Returns:
- parameter alias
-
getParameterAlias
Get possibly translated parameter alias- Parameters:
translate-- Returns:
- parameter alias
-
getParameterID
-
getParameterTypes
Get possibly overloaded parameter types- Returns:
- String[] of type aliases
-
getParameterTypes
Get possibly translated and overloaded parameter types- Parameters:
translate-- Returns:
- String[] of type aliases
-
getParameterTypeIDs
Get possibly overloaded parameter types- Returns:
- DOID[] of type IDs
-
isParameterRequired
public boolean isParameterRequired()true if, according to the data model, this Expression must be supplied -
setLiteralValue
Shorthand forsetConstant(true); setValue(literalValue); -
isCustomizable
Deprecated.no replacement -
setCustomizable
Deprecated.no replacement -
getShowFunctions
public boolean getShowFunctions()Get Show functions and methods in ValueOptions -
setShowFunctions
public void setShowFunctions(boolean showFunctions) Set Show functions and methods in ValueOptions -
getShowConstants
public boolean getShowConstants()Get Show constants in ValueOptions -
setShowConstants
public void setShowConstants(boolean showConstants) Set Show constants in ValueOptions -
getShowVariables
public boolean getShowVariables()Get Show variables in ValueOptions -
setShowVariables
public void setShowVariables(boolean showVariables) Set Show variables in ValueOptions -
same
Is this expression the same as expr?- Parameters:
expr-- Returns:
- whether this is the same expression as expr
-
get
Description copied from class:DictionaryComponentGeneric property getter.Please see the specific bean class for a list of properties.
- Specified by:
getin interfaceMap<String,Object> - Overrides:
getin classUnnamedRuleComponent<Expression>- Parameters:
key- a String containing the property name to be fetched.- Returns:
- the value corresponding to the key: a String, String[], DictionaryComponent, DictionaryComponentTable, etc.
-
put
Description copied from class:DictionaryComponentGeneric property setter. Throws runtime exceptions for incorrect arguments. Please see the specific bean class for a list of properties, their types, and permissible values.A put() with either null key or null value throws a NullPointerException.
A put() with a key that is not a String throws a ClassCastException
A put() of a value that is not of the correct type for the key throws a ClassCastException.
Bean properties which have no set() method are read only, and cannot be modified using the put(). Attempting to do so throws a runtime IllegalArgumentException. PROP_ID, and PROP_*_SELECTED are always read only.
- Specified by:
putin interfaceMap<String,Object> - Overrides:
putin classUnnamedRuleComponent<Expression>- Parameters:
key- the key of the property to setvalue- the value of the named property to set- Returns:
- the previous value of the property
-
getRL
public getRL -
getAutoPatternPropertyOptions
Deprecated.No replacement. A no-op. -
getReferences
Description copied from class:DictionaryComponentGet the DOIDs referenced by this component (but not the contained components)- Overrides:
getReferencesin classDictionaryComponent<Expression>- Returns:
- list of the DOIDs
-
getAEReferences
Description copied from class:DictionaryComponentGet the DOIDs referenced by all directly or indirectly contained actions and expressions- Overrides:
getAEReferencesin classDictionaryComponent<Expression>- Returns:
- list of the DOIDs
-
getAllReferences
Description copied from class:DictionaryComponentGet the DOIDs referenced by this component or contained components- Overrides:
getAllReferencesin classDictionaryComponent<Expression>- Returns:
- list of the DOIDs
-
getExprParserReferences
Description copied from class:DictionaryComponentGet all ExprParsers that are directly or Indirectly referenced by this dictionary Object and its descendants- Overrides:
getExprParserReferencesin classDictionaryComponent<Expression>- Returns:
- Collection of Expression Parsers
-
getDependentModelComponents
-
balanced
public int[][] balanced()Matches up operators which come in pairs, such as ( ), then returns an array of ordered pairs of the matches. The integer is the offset into the expression String. This allows applications to indicate to in the view which grouping operators are paired.- Returns:
- an Array of ordered pairs (dimensions int [][2])of indexes into the expression String
-
unbalanced
public int[] unbalanced()Matches up operators which come in pairs, such as ( ), then returns an array of integers indicating unmatched grouping operators. The integer is the offset into the expression String.- Returns:
- an array of offsets into the expression String
-
setShowConstructorsWithFunctions
public void setShowConstructorsWithFunctions(boolean b) Include Constructors in the Function options list -
append
Append the given string to the end of the existing Value Behavior is the same as the append method of java.lang.StringBuffer, except that a null value of str inserts the String "null". No exceptions are thrown.- Parameters:
str- the String to append- Returns:
- the new String (also available by calling getValue()
-
insert
Insert the given string at the given position of the Value. Behavior is the same as the insert method of java.lang.StringBuffer, except that invalid values for start and end are adjusted to the closest valid values, and a null value of str inserts the String "null". No exceptions are thrown.0 <= offset <= getExpression.length()
- Parameters:
offset- where to insert the text, 0 basedstr- the text to insert- Returns:
- the new String (also available by calling getValue()
-
replace
Insert the given string at the given position of the Value String. Behavior is the same as the replace method of java.lang.StringBuffer, except that invalid values for start and end are adjusted to the closest valid values, and a null value of str inserts the String "null". No exceptions are thrown.0 <= start <= end <= getExpression.length()
- Parameters:
start- beginning index of substring to replace, 0 basedend- ending index of substring to replace, 0 basedstr- the text to insert- Returns:
- the new String (also available by calling getValue()
-
getCursorPosition
public int getCursorPosition() -
setCursorPosition
public void setCursorPosition(int cursorPosition) -
getTokenUnderCursor
If the cursor is in a token or white space preceeding the token, returns a description of the token. If in whitespace following the last token, returns the last token. In cases where the Value is all spaces or comments, Token.getType() returns TYPE_ALL_SPACES. -
evaluateConstant
if the expression can be evaluated at design time, returns its literal value. Else return null- Returns:
- String literal value or null
-
getExpressionContext
- Returns:
- ExpressionContext
-
setParameterRequired
Deprecated.No replacement. A no-op. -
getValue
get optionally translated value short forgetValueProperty().getValue(translate)- Parameters:
translate-- Returns:
- optionally translated value
-
inScopeVariables
public List<ScopedVariable> inScopeVariables(boolean includeAggregates, VariableScope.ExprLocation loc) Description copied from class:RuleComponentBy default, pass the request to the container- Specified by:
inScopeVariablesin interfaceVariableScope- Overrides:
inScopeVariablesin classRuleComponent<Expression>
-
getDiffMatchValue
Description copied from interface:UnnamedComponentvalue to use matching table entries, "" means use positional matching- Specified by:
getDiffMatchValuein interfaceUnnamedComponent- Overrides:
getDiffMatchValuein classUnnamedRuleComponent<Expression>- Returns:
- the value to use for matching components in tables, default is name
-
getAliasedExpression
if this expression is a reference to a rule test variable, return the expression aliased by the variable. else return null. -
isModifiable
public boolean isModifiable()- Overrides:
isModifiablein classDictionaryComponent<Expression>
-