public class VariableArray extends VariableBase
| Modifier and Type | Class and Description |
|---|---|
protected class |
VariableArray.ElementReference
Extend VariableReference class so we capture attempts to set the reference, and actually overwrite the child when that is done
|
| Modifier and Type | Field and Description |
|---|---|
protected List<Variable> |
array |
ATTRIBUTE_BOOLEAN, ATTRIBUTE_CREATEDSTATUS, ATTRIBUTE_DICT, ATTRIBUTE_FLOAT, ATTRIBUTE_INT, ATTRIBUTE_NOTFOUNDSTATUS, ATTRIBUTE_OKSTATUS, ATTRIBUTE_SCRIPT, ATTRIBUTE_SIZE, ATTRIBUTE_STRING, ATTRIBUTE_TYPE, ATTRIBUTE_UNAUTHORIZEDSTATUS, ATTRIBUTE_VALUE| Constructor and Description |
|---|
VariableArray() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
VariableReference |
getAttribute(String attributeName)
Get a named attribute of the variable; e.g.
|
VariableReference |
getIndexed(Variable index)
Get an indexed property of the variable
|
String |
getScriptValue()
Get the variable's script value
|
int |
hashCode() |
boolean |
hasScriptValue()
Check if the variable has a script value
|
void |
insertAt(Variable v,
Variable index)
Insert an object into this variable at a position.
|
void |
removeAt(Variable index)
Delete an object from this variable at a position.
|
ampersand, asterisk, composeMessage, doubleAmpersand, doubleEquals, doublePipe, exclamationEquals, getBooleanValue, getConfigurationNodeValue, getConfigurationValue, getDoubleValue, getIntValue, getQueryArgumentValue, getStringValue, getURLPathValue, greaterAngle, greaterAngleEquals, hasBooleanValue, hasConfigurationNodeValue, hasConfigurationValue, hasDoubleValue, hasIntValue, hasQueryArgumentValue, hasStringValue, hasURLPathValue, isNull, lesserAngle, lesserAngleEquals, minus, pipe, plus, resolve, setReference, slash, unaryExclamation, unaryMinuspublic boolean hasScriptValue()
throws ScriptException
hasScriptValue in interface VariablehasScriptValue in class VariableBaseScriptExceptionpublic String getScriptValue() throws ScriptException
getScriptValue in interface VariablegetScriptValue in class VariableBaseScriptExceptionpublic VariableReference getAttribute(String attributeName) throws ScriptException
getAttribute in interface VariablegetAttribute in class VariableBaseScriptExceptionpublic VariableReference getIndexed(Variable index) throws ScriptException
getIndexed in interface VariablegetIndexed in class VariableBaseScriptExceptionpublic void insertAt(Variable v, Variable index) throws ScriptException
insertAt in interface VariableinsertAt in class VariableBaseScriptExceptionpublic void removeAt(Variable index) throws ScriptException
removeAt in interface VariableremoveAt in class VariableBaseScriptException